├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── values-v21
│ │ │ │ └── styles.xml
│ │ │ ├── drawable
│ │ │ │ ├── bg.jpg
│ │ │ │ ├── top1.jpg
│ │ │ │ ├── top2.jpg
│ │ │ │ ├── cb_right.xml
│ │ │ │ ├── bt1.xml
│ │ │ │ ├── cb.xml
│ │ │ │ ├── bt.xml
│ │ │ │ ├── next.xml
│ │ │ │ ├── pre.xml
│ │ │ │ ├── side_nav_bar.xml
│ │ │ │ ├── checked.xml
│ │ │ │ ├── ok.xml
│ │ │ │ ├── quecard.xml
│ │ │ │ ├── star_on.xml
│ │ │ │ ├── right.xml
│ │ │ │ ├── circle.xml
│ │ │ │ ├── search1.xml
│ │ │ │ ├── wrong.xml
│ │ │ │ ├── star1.xml
│ │ │ │ ├── search.xml
│ │ │ │ ├── exam.xml
│ │ │ │ ├── test.xml
│ │ │ │ ├── settings.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ │ ├── raw
│ │ │ │ └── question.db3
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ ├── ic_launcher_round.png
│ │ │ │ └── ic_launcher_foreground.png
│ │ │ ├── values
│ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── drawables.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ ├── menu
│ │ │ │ ├── main.xml
│ │ │ │ ├── que.xml
│ │ │ │ └── activity_main_drawer.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── layout
│ │ │ │ ├── carditem.xml
│ │ │ │ ├── listitem1.xml
│ │ │ │ ├── activity_card.xml
│ │ │ │ ├── content_main.xml
│ │ │ │ ├── fragment_search.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── nav_header_main.xml
│ │ │ │ ├── app_bar_main.xml
│ │ │ │ ├── layout_top2.xml
│ │ │ │ ├── bottom.xml
│ │ │ │ ├── listitem.xml
│ │ │ │ ├── activity_setting.xml
│ │ │ │ ├── activity_exam.xml
│ │ │ │ ├── layout_top1.xml
│ │ │ │ ├── que_content.xml
│ │ │ │ ├── activity_detail.xml
│ │ │ │ ├── listitem_exm.xml
│ │ │ │ ├── queitem.xml
│ │ │ │ ├── activity_result.xml
│ │ │ │ ├── activity_search.xml
│ │ │ │ ├── activity_question.xml
│ │ │ │ └── fragment_question.xml
│ │ │ ├── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ │ └── layout-v21
│ │ │ │ └── queitem.xml
│ │ ├── ic_launcher-web.png
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── lidan
│ │ │ │ └── xiao
│ │ │ │ └── danquestion
│ │ │ │ ├── hepler
│ │ │ │ ├── MyTag.java
│ │ │ │ ├── ToolHelper.java
│ │ │ │ └── SQLiteRelease.java
│ │ │ │ ├── activity
│ │ │ │ ├── SettingActivity.java
│ │ │ │ ├── ResultActivity.java
│ │ │ │ ├── CardActivity.java
│ │ │ │ ├── ExamActivity.java
│ │ │ │ ├── SearchActivity.java
│ │ │ │ ├── DetailActivity.java
│ │ │ │ ├── PracticeActivity.java
│ │ │ │ └── QuestionActivity.java
│ │ │ │ ├── view
│ │ │ │ ├── MyListView.java
│ │ │ │ └── MyViewPager.java
│ │ │ │ ├── fragment
│ │ │ │ ├── SearchFragment.java
│ │ │ │ └── QuestionFragment.java
│ │ │ │ └── MainActivity.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── lidan
│ │ │ └── xiao
│ │ │ └── danquestion
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── lidan
│ │ └── xiao
│ │ └── danquestion
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
├── build.gradle
└── app.iml
├── .gradle
├── buildOutputCleanup
│ ├── built.bin
│ ├── cache.properties.lock
│ └── cache.properties
└── 4.1
│ ├── fileChanges
│ └── last-build.bin
│ ├── javaCompile
│ ├── taskJars.bin
│ ├── classAnalysis.bin
│ ├── jarAnalysis.bin
│ ├── javaCompile.lock
│ └── taskHistory.bin
│ ├── fileHashes
│ ├── fileHashes.bin
│ ├── fileHashes.lock
│ └── resourceHashesCache.bin
│ ├── fileContent
│ └── fileContent.lock
│ └── taskHistory
│ ├── fileSnapshots.bin
│ ├── taskHistory.bin
│ └── taskHistory.lock
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── 效果图
├── device-2018-01-12-094639.png
├── device-2018-01-12-094735.png
├── device-2018-01-12-094823.png
├── device-2018-01-12-094841.png
├── device-2018-01-12-094912.png
├── device-2018-01-12-094933.png
├── device-2018-01-12-094948.png
├── device-2018-01-12-095051.png
├── device-2018-01-12-095116.png
├── device-2018-01-12-095143.png
├── device-2018-01-12-095315.png
├── device-2018-01-12-095402.png
├── device-2018-01-12-095423.png
└── device-2018-01-12-095524.png
├── .idea
├── vcs.xml
├── libraries
│ ├── net_sf_kxml_kxml2_2_3_0_jar.xml
│ ├── com_google_code_findbugs_jsr305_2_0_1_jar.xml
│ ├── com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml
│ ├── junit_junit_4_12_jar.xml
│ ├── com_android_support_constraint_constraint_layout_1_0_2.xml
│ ├── javax_inject_javax_inject_1_jar.xml
│ ├── android_arch_core_common_1_0_0_jar.xml
│ ├── com_squareup_javawriter_2_1_1_jar.xml
│ ├── org_hamcrest_hamcrest_core_1_3_jar.xml
│ ├── android_arch_lifecycle_common_1_0_0_jar.xml
│ ├── org_hamcrest_hamcrest_library_1_3_jar.xml
│ ├── org_hamcrest_hamcrest_integration_1_3_jar.xml
│ ├── com_android_support_support_annotations_26_1_0_jar.xml
│ ├── com_android_support_design_26_1_0.xml
│ ├── com_android_support_test_rules_1_0_1.xml
│ ├── android_arch_lifecycle_runtime_1_0_0.xml
│ ├── com_android_support_test_runner_1_0_1.xml
│ ├── com_android_support_support_v4_26_1_0.xml
│ ├── com_android_support_transition_26_1_0.xml
│ ├── com_android_support_appcompat_v7_26_1_0.xml
│ ├── com_android_support_support_compat_26_1_0.xml
│ ├── com_android_support_recyclerview_v7_26_1_0.xml
│ ├── com_android_support_support_core_ui_26_1_0.xml
│ ├── com_android_support_support_fragment_26_1_0.xml
│ ├── com_android_support_support_core_utils_26_1_0.xml
│ ├── com_android_support_test_espresso_espresso_core_3_0_1.xml
│ ├── com_android_support_support_media_compat_26_1_0.xml
│ ├── com_android_support_support_vector_drawable_26_1_0.xml
│ ├── com_android_support_animated_vector_drawable_26_1_0.xml
│ └── com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml
├── modules.xml
├── runConfigurations.xml
├── gradle.xml
└── misc.xml
├── local.properties
├── gradle.properties
├── Question.iml
├── README.md
├── gradlew.bat
└── gradlew
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/.gradle/buildOutputCleanup/built.bin:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/.gradle/4.1/fileChanges/last-build.bin:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gradle/buildOutputCleanup/cache.properties.lock:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.gradle/buildOutputCleanup/cache.properties:
--------------------------------------------------------------------------------
1 | #Sun Jan 07 08:22:07 CST 2018
2 | gradle.version=4.1
3 |
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/drawable/bg.jpg
--------------------------------------------------------------------------------
/app/src/main/res/raw/question.db3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/raw/question.db3
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094639.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094639.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094735.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094735.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094823.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094823.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094841.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094841.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094912.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094912.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094933.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094933.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-094948.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-094948.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095051.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095051.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095116.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095116.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095143.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095143.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095315.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095315.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095402.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095402.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095423.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095423.png
--------------------------------------------------------------------------------
/效果图/device-2018-01-12-095524.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/效果图/device-2018-01-12-095524.png
--------------------------------------------------------------------------------
/.gradle/4.1/javaCompile/taskJars.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/javaCompile/taskJars.bin
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/drawable/top1.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/top2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/drawable/top2.jpg
--------------------------------------------------------------------------------
/.gradle/4.1/fileHashes/fileHashes.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/fileHashes/fileHashes.bin
--------------------------------------------------------------------------------
/.gradle/4.1/fileHashes/fileHashes.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/fileHashes/fileHashes.lock
--------------------------------------------------------------------------------
/.gradle/4.1/fileContent/fileContent.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/fileContent/fileContent.lock
--------------------------------------------------------------------------------
/.gradle/4.1/javaCompile/classAnalysis.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/javaCompile/classAnalysis.bin
--------------------------------------------------------------------------------
/.gradle/4.1/javaCompile/jarAnalysis.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/javaCompile/jarAnalysis.bin
--------------------------------------------------------------------------------
/.gradle/4.1/javaCompile/javaCompile.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/javaCompile/javaCompile.lock
--------------------------------------------------------------------------------
/.gradle/4.1/javaCompile/taskHistory.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/javaCompile/taskHistory.bin
--------------------------------------------------------------------------------
/.gradle/4.1/taskHistory/fileSnapshots.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/taskHistory/fileSnapshots.bin
--------------------------------------------------------------------------------
/.gradle/4.1/taskHistory/taskHistory.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/taskHistory/taskHistory.bin
--------------------------------------------------------------------------------
/.gradle/4.1/taskHistory/taskHistory.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/taskHistory/taskHistory.lock
--------------------------------------------------------------------------------
/.gradle/4.1/fileHashes/resourceHashesCache.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/.gradle/4.1/fileHashes/resourceHashesCache.bin
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xiaolidan00/question/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cb_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Jan 07 08:22:01 CST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bt1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cb.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/que.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bt.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/next.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pre.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/side_nav_bar.xml:
--------------------------------------------------------------------------------
1 |
3 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/carditem.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/hepler/MyTag.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.hepler;
2 |
3 | /**
4 | * Created by Administrator on 2018/1/11.
5 | */
6 |
7 | public class MyTag {
8 | public final static int QUE=1;
9 | public final static int COLLECT=2;
10 | public final static int WRONG=3;
11 | public final static int CARD=4;
12 | }
13 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/checked.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ok.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/quecard.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/star_on.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file should *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | sdk.dir=F\:\\AndroidSDK
--------------------------------------------------------------------------------
/app/src/main/res/drawable/right.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/circle.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 8dp
6 | 176dp
7 | 16dp
8 | 180dp
9 | 16dp
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/search1.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/wrong.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/test/java/com/lidan/xiao/danquestion/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 | #80FF4081
7 | #808080
8 | #FFFFFF
9 | #1E90FF
10 | #ADD8E6
11 | #E1FFFF
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/junit_junit_4_12_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/star1.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_constraint_constraint_layout_1_0_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/search.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/javax_inject_javax_inject_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/libraries/android_arch_core_common_1_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/exam.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/android_arch_lifecycle_common_1_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/listitem1.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/activity_main_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/test.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_card.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/drawables.xml:
--------------------------------------------------------------------------------
1 |
2 | - @android:drawable/ic_menu_camera
3 | - @android:drawable/ic_menu_gallery
4 | - @android:drawable/ic_menu_slideshow
5 | - @android:drawable/ic_menu_manage
6 | - @android:drawable/ic_menu_share
7 | - @android:drawable/ic_menu_send
8 |
9 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_annotations_26_1_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_design_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_test_rules_1_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/android_arch_lifecycle_runtime_1_0_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_test_runner_1_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_v4_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_transition_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_appcompat_v7_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | 答题App
3 | Main2Activity
4 |
5 | Open navigation drawer
6 | Close navigation drawer
7 |
8 | Settings
9 |
10 | " 该答题app主要功能模块有:查询题目、题库测试和练习,错题练习,收藏题目练习,考试记录等功能。
11 | 运用技术有SQLite,fragment,ViewFlipper,OnTouchListener等,关键技术在于答题功能的逻辑设计。
12 | 其中在测试功能中有计时,滑动切换试题,题号选择卡,收藏,错对判断和保存错题,测试结束后会保存考试成绩。
13 | 练习功能中有滑动切换试题,题号选择卡,收藏,保存上次进度,错对判断和保存错题。
14 | 查询题目功能,通过关键词可以查询到相关的题目并查看详细题目解析。
15 | "
16 |
17 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_compat_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_recyclerview_v7_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_core_ui_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_fragment_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_core_utils_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_media_compat_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_support_vector_drawable_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_animated_vector_drawable_26_1_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/content_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Question.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/lidan/xiao/danquestion/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.lidan.xiao.danquestion", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/fragment_search.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
17 |
18 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | defaultConfig {
6 | applicationId "com.lidan.xiao.danquestion"
7 | minSdkVersion 15
8 | targetSdkVersion 26
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(dir: 'libs', include: ['*.jar'])
23 | implementation 'com.android.support:appcompat-v7:26.1.0'
24 | implementation 'com.android.support.constraint:constraint-layout:1.0.2'
25 | implementation 'com.android.support:design:26.1.0'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation 'com.android.support.test:runner:1.0.1'
28 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
29 | }
30 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/activity/SettingActivity.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.activity;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.support.v7.widget.Toolbar;
6 | import android.view.MenuItem;
7 |
8 | import com.lidan.xiao.danquestion.R;
9 |
10 | public class SettingActivity extends AppCompatActivity {
11 |
12 | @Override
13 | protected void onCreate(Bundle savedInstanceState) {
14 | super.onCreate(savedInstanceState);
15 | setContentView(R.layout.activity_setting);
16 | //ActionBar工具栏设置
17 | Toolbar toolbar = findViewById(R.id.toolbar2);
18 | setSupportActionBar(toolbar);
19 | getSupportActionBar().setHomeButtonEnabled(true);
20 | getSupportActionBar().setDisplayHomeAsUpEnabled(true);
21 | }
22 |
23 | @Override
24 | public boolean onOptionsItemSelected(MenuItem item) {
25 | switch (item.getItemId()){
26 | case android.R.id.home:
27 | finish();
28 | break;
29 | }
30 | return super.onOptionsItemSelected(item);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/app_bar_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/settings.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/view/MyListView.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.view;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.os.Build;
6 | import android.util.AttributeSet;
7 | import android.widget.ListView;
8 |
9 | /**
10 | * Created by Administrator on 2018/1/7.
11 | */
12 |
13 | public class MyListView extends ListView {
14 | public MyListView(Context context) {
15 | super(context);
16 | }
17 |
18 | public MyListView(Context context, AttributeSet attrs) {
19 | super(context, attrs);
20 | }
21 |
22 | public MyListView(Context context, AttributeSet attrs, int defStyleAttr) {
23 | super(context, attrs, defStyleAttr);
24 | }
25 |
26 | @TargetApi(Build.VERSION_CODES.LOLLIPOP)
27 | public MyListView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
28 | super(context, attrs, defStyleAttr, defStyleRes);
29 | }
30 |
31 | @Override
32 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
33 | int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
34 | MeasureSpec.AT_MOST);
35 | super.onMeasure(widthMeasureSpec, expandSpec);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 答题 APP
2 |
3 | ** 主要功能模块有:** 查询题目、题库测试和练习,错题练习,收藏题目练习,考试记录等功能。
4 | ** 运用技术:**
5 | - SQLite,fragment,ViewFlipper,OnTouchListener等,关键技术在于答题功能的逻辑设计。
6 | - 其中在测试功能中有计时,滑动切换试题,题号选择卡,收藏,错对判断和保存错题,测试结束后会保存考试成绩。
7 | - 练习功能中有滑动切换试题,题号选择卡,收藏,保存上次进度,错对判断和保存错题。
8 | - 查询题目功能,通过关键词可以查询到相关的题目并查看详细题目解析。
9 |
10 | 
11 |
12 | 
13 |
14 | 
15 |
16 | 
17 |
18 | 
19 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_top2.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
19 |
20 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
23 |
30 |
37 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/listitem.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
17 |
22 |
28 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_setting.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
20 |
27 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/fragment/SearchFragment.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.fragment;
2 |
3 | import android.app.Fragment;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.support.annotation.Nullable;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.Button;
11 | import android.widget.SearchView;
12 | import android.widget.TextView;
13 |
14 | import com.lidan.xiao.danquestion.R;
15 | import com.lidan.xiao.danquestion.activity.SearchActivity;
16 |
17 | /**
18 | * Created by Administrator on 2018/1/7.
19 | */
20 |
21 | public class SearchFragment extends Fragment {
22 | private View rootView;
23 | private TextView sv;
24 | @Nullable
25 | @Override
26 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
27 | View rootView=inflater.inflate(R.layout.fragment_search,container,false);
28 | this.rootView=rootView;
29 | sv=rootView.findViewById(R.id.tv_sv);
30 | sv.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | Intent intent=new Intent(getActivity(), SearchActivity.class);
34 | startActivity(intent);
35 | }
36 | });
37 | return rootView;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_exam.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
19 |
23 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_top1.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
19 |
20 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/que_content.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
22 |
30 |
36 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/view/MyViewPager.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.view;
2 |
3 | import android.content.Context;
4 | import android.support.v4.view.ViewPager;
5 | import android.util.AttributeSet;
6 | import android.view.MotionEvent;
7 |
8 | /**
9 | * Created by Administrator on 2018/1/9.
10 | */
11 |
12 | public class MyViewPager extends ViewPager {
13 |
14 | private float x;
15 | private float mLastMotionX;
16 | private boolean isComplete = false;
17 |
18 | public void isCompleteable(boolean iscomplete) {
19 | this.isComplete = iscomplete;
20 | }
21 |
22 | public MyViewPager(Context context) {
23 | super(context);
24 | }
25 |
26 | public MyViewPager(Context context, AttributeSet attrs) {
27 | super(context, attrs);
28 | }
29 |
30 | @Override
31 | public boolean onTouchEvent(MotionEvent arg0) {
32 | return super.onTouchEvent(arg0);
33 | }
34 |
35 | @Override
36 | public boolean dispatchTouchEvent(MotionEvent ev) {
37 | switch (ev.getAction()) {
38 | case MotionEvent.ACTION_DOWN:
39 | x = ev.getX(); // 在手指按下的时获取X轴的坐标
40 | break;
41 | case MotionEvent.ACTION_MOVE:
42 | mLastMotionX = ev.getX() - x; // 滑动的距离
43 | if (!isComplete) {
44 | if (mLastMotionX < 0) {
45 | return false; //不可以滑动
46 | }
47 | }
48 | break;
49 | }
50 | return super.dispatchTouchEvent(ev);
51 | }
52 |
53 | @Override
54 | public boolean onInterceptTouchEvent(MotionEvent arg0) {
55 | return super.onInterceptTouchEvent(arg0);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/app/src/main/java/com/lidan/xiao/danquestion/hepler/ToolHelper.java:
--------------------------------------------------------------------------------
1 | package com.lidan.xiao.danquestion.hepler;
2 |
3 | import android.content.Context;
4 | import android.database.Cursor;
5 | import android.database.sqlite.SQLiteDatabase;
6 |
7 | import java.util.ArrayList;
8 | import java.util.HashMap;
9 | import java.util.List;
10 | import java.util.Map;
11 |
12 | /**
13 | * Created by Administrator on 2018/1/7.
14 | */
15 |
16 | public class ToolHelper {
17 | public static List