├── App-期末设计-ppt.pptx
├── SQLite数据库
├── Data.db
├── Data.db-journal
├── MusicList.db
└── MusicList.db-journal
├── 实验报告.docx
├── 音乐播放器
├── .gitignore
├── MusicPlayer
│ ├── .idea
│ │ ├── caches
│ │ │ ├── build_file_checksums.ser
│ │ │ └── gradle_models.ser
│ │ ├── encodings.xml
│ │ ├── gradle.xml
│ │ ├── inspectionProfiles
│ │ │ └── Project_Default.xml
│ │ ├── libraries
│ │ │ ├── Gradle__android_android_28.xml
│ │ │ ├── Gradle__android_arch_core_common_1_1_1_jar.xml
│ │ │ ├── Gradle__android_arch_core_runtime_1_1_1_aar.xml
│ │ │ ├── Gradle__android_arch_lifecycle_common_1_1_1_jar.xml
│ │ │ ├── Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml
│ │ │ ├── Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml
│ │ │ ├── Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml
│ │ │ ├── Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml
│ │ │ ├── Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_cardview_v7_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_collections_28_0_0_jar.xml
│ │ │ ├── Gradle__com_android_support_constraint_constraint_layout_1_1_3_aar.xml
│ │ │ ├── Gradle__com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml
│ │ │ ├── Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_cursoradapter_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_customview_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_design_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_documentfile_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_drawerlayout_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_interpolator_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_loader_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_print_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_recyclerview_v7_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_annotations_28_0_0_jar.xml
│ │ │ ├── Gradle__com_android_support_support_compat_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_core_ui_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_core_utils_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_fragment_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_media_compat_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_v4_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_test_espresso_espresso_core_3_0_2_aar.xml
│ │ │ ├── Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_2_aar.xml
│ │ │ ├── Gradle__com_android_support_test_monitor_1_0_2_aar.xml
│ │ │ ├── Gradle__com_android_support_test_runner_1_0_2_aar.xml
│ │ │ ├── Gradle__com_android_support_transition_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml
│ │ │ ├── Gradle__com_android_support_viewpager_28_0_0_aar.xml
│ │ │ ├── Gradle__com_github_bumptech_glide_annotations_4_9_0_jar.xml
│ │ │ ├── Gradle__com_github_bumptech_glide_disklrucache_4_9_0_jar.xml
│ │ │ ├── Gradle__com_github_bumptech_glide_gifdecoder_4_9_0_aar.xml
│ │ │ ├── Gradle__com_github_bumptech_glide_glide_4_9_0_aar.xml
│ │ │ ├── Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml
│ │ │ ├── Gradle__com_jaeger_statusbarutil_library_1_4_0_aar.xml
│ │ │ ├── Gradle__com_squareup_javawriter_2_1_1_jar.xml
│ │ │ ├── Gradle__com_squareup_okhttp3_okhttp_3_12_0_jar.xml
│ │ │ ├── Gradle__com_squareup_okio_okio_1_15_0_jar.xml
│ │ │ ├── Gradle__de_hdodenhof_circleimageview_3_0_0_aar.xml
│ │ │ ├── Gradle__javax_inject_javax_inject_1_jar.xml
│ │ │ ├── Gradle__junit_junit_4_12_jar.xml
│ │ │ ├── Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml
│ │ │ ├── Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml
│ │ │ ├── Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml
│ │ │ ├── Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml
│ │ │ └── Gradle__org_litepal_android_core_2_0_0_aar.xml
│ │ ├── misc.xml
│ │ ├── modules.xml
│ │ ├── runConfigurations.xml
│ │ └── workspace.xml
│ ├── app
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── debug
│ │ │ └── app.aab
│ │ ├── proguard-rules.pro
│ │ ├── release
│ │ │ └── app.aab
│ │ └── src
│ │ │ ├── androidTest
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── musicplayer
│ │ │ │ └── ExampleInstrumentedTest.java
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── assets
│ │ │ │ └── litepal.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── musicplayer
│ │ │ │ │ ├── Login
│ │ │ │ │ ├── DBHelper.java
│ │ │ │ │ ├── DBManager.java
│ │ │ │ │ ├── ForgotInfo_activity.java
│ │ │ │ │ ├── Login_Activity.java
│ │ │ │ │ ├── Register_Activity.java
│ │ │ │ │ └── UsersInfo.java
│ │ │ │ │ ├── Music.java
│ │ │ │ │ ├── MusicAdapter.java
│ │ │ │ │ ├── PlayingMusicAdapter.java
│ │ │ │ │ ├── Utils.java
│ │ │ │ │ ├── activity
│ │ │ │ │ ├── LocalMusicActivity.java
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ ├── OnlineMusicActivity.java
│ │ │ │ │ ├── PlayerActivity.java
│ │ │ │ │ ├── SplashActivity.java
│ │ │ │ │ └── WebActivity.java
│ │ │ │ │ ├── service
│ │ │ │ │ └── MusicService.java
│ │ │ │ │ ├── useLitepal
│ │ │ │ │ ├── LocalMusic.java
│ │ │ │ │ ├── MyMusic.java
│ │ │ │ │ └── PlayingMusic.java
│ │ │ │ │ └── widget
│ │ │ │ │ └── RotateAnimator.java
│ │ │ └── res
│ │ │ │ ├── anim
│ │ │ │ ├── bottom_in.xml
│ │ │ │ ├── bottom_out.xml
│ │ │ │ └── bottom_silent.xml
│ │ │ │ ├── drawable-nodpi
│ │ │ │ ├── ic_disc.png
│ │ │ │ ├── ic_disc_blackground.png
│ │ │ │ └── ic_needle.png
│ │ │ │ ├── drawable-v24
│ │ │ │ ├── btn_border.xml
│ │ │ │ ├── eye.png
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ ├── invisible.png
│ │ │ │ ├── layout_border.xml
│ │ │ │ ├── people_fill.png
│ │ │ │ └── visible.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── bofang.png
│ │ │ │ ├── delete.png
│ │ │ │ ├── gengduo.png
│ │ │ │ ├── liebiao.png
│ │ │ │ ├── shuaxin.png
│ │ │ │ └── zanting.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── app_img.png
│ │ │ │ ├── defult_music_img.jpg
│ │ │ │ ├── defult_user_img.jpg
│ │ │ │ ├── ic_blackground.png
│ │ │ │ ├── ic_seekbar_thumb.png
│ │ │ │ └── splash.jpg
│ │ │ │ ├── drawable
│ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ ├── ic_menu.png
│ │ │ │ ├── ic_menu_camera.xml
│ │ │ │ ├── ic_menu_gallery.xml
│ │ │ │ ├── ic_menu_manage.xml
│ │ │ │ ├── ic_menu_send.xml
│ │ │ │ ├── ic_menu_share.xml
│ │ │ │ ├── ic_menu_slideshow.xml
│ │ │ │ ├── ic_next.png
│ │ │ │ ├── ic_pause.png
│ │ │ │ ├── ic_play.png
│ │ │ │ ├── ic_playrecycler.png
│ │ │ │ ├── ic_pre.png
│ │ │ │ ├── ic_random.png
│ │ │ │ ├── ic_singlerecycler.png
│ │ │ │ └── liutifei.jpg
│ │ │ │ ├── layout
│ │ │ │ ├── activity_localmusic.xml
│ │ │ │ ├── activity_m.xml
│ │ │ │ ├── activity_main.xml
│ │ │ │ ├── activity_onlinemusic.xml
│ │ │ │ ├── activity_player.xml
│ │ │ │ ├── activity_splash.xml
│ │ │ │ ├── forgotinfo_activity.xml
│ │ │ │ ├── layout_discview.xml
│ │ │ │ ├── music_item.xml
│ │ │ │ ├── nav_header.xml
│ │ │ │ ├── playinglist_item.xml
│ │ │ │ ├── register_activity.xml
│ │ │ │ └── wenview.xml
│ │ │ │ ├── menu
│ │ │ │ ├── main.xml
│ │ │ │ └── nav_menu.xml
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.png
│ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── styles.xml
│ │ │ │ └── xueli.xml
│ │ │ │ └── values
│ │ │ │ ├── attrs.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ └── test
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── musicplayer
│ │ │ └── ExampleUnitTest.java
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ └── settings.gradle
└── README.md
├── 音乐播放器apk
├── app-release.apk
└── output.json
├── 高德地图
├── .gitignore
├── .idea
│ ├── caches
│ │ ├── build_file_checksums.ser
│ │ └── gradle_models.ser
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── externalDependencies.xml
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── runConfigurations.xml
├── android
│ └── webkit
│ │ └── annotations.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── libs
│ │ └── Amap_2DMap_V5.2.0_20170627.jar
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── gaodemap
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── gaodemap
│ │ │ │ ├── AmapActivity.java
│ │ │ │ └── LocationUtil.java
│ │ └── res
│ │ │ ├── layout
│ │ │ └── activity_amap.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── position.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_round.png
│ │ │ └── liutifei.jpg
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── gaodemap
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
└── 高德地图apk
└── app.aab
/App-期末设计-ppt.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/App-期末设计-ppt.pptx
--------------------------------------------------------------------------------
/SQLite数据库/Data.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/SQLite数据库/Data.db
--------------------------------------------------------------------------------
/SQLite数据库/Data.db-journal:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/SQLite数据库/Data.db-journal
--------------------------------------------------------------------------------
/SQLite数据库/MusicList.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/SQLite数据库/MusicList.db
--------------------------------------------------------------------------------
/SQLite数据库/MusicList.db-journal:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/SQLite数据库/MusicList.db-journal
--------------------------------------------------------------------------------
/实验报告.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/实验报告.docx
--------------------------------------------------------------------------------
/音乐播放器/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the ART/Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 | out/
15 |
16 | # Gradle files
17 | .gradle/
18 | build/
19 |
20 | # Local configuration file (sdk path, etc)
21 | local.properties
22 |
23 | # Proguard folder generated by Eclipse
24 | proguard/
25 |
26 | # Log Files
27 | *.log
28 |
29 | # Android Studio Navigation editor temp files
30 | .navigation/
31 |
32 | # Android Studio captures folder
33 | captures/
34 |
35 | # IntelliJ
36 | *.iml
37 | .idea/workspace.xml
38 | .idea/tasks.xml
39 | .idea/gradle.xml
40 | .idea/assetWizardSettings.xml
41 | .idea/dictionaries
42 | .idea/libraries
43 | .idea/caches
44 |
45 | # Keystore files
46 | # Uncomment the following line if you do not want to check your keystore files in.
47 | #*.jks
48 |
49 | # External native build folder generated in Android Studio 2.2 and later
50 | .externalNativeBuild
51 |
52 | # Google Services (e.g. APIs or Firebase)
53 | google-services.json
54 |
55 | # Freeline
56 | freeline.py
57 | freeline/
58 | freeline_project_description.json
59 |
60 | # fastlane
61 | fastlane/report.xml
62 | fastlane/Preview.html
63 | fastlane/screenshots
64 | fastlane/test_output
65 | fastlane/readme.md
66 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/caches/build_file_checksums.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/.idea/caches/build_file_checksums.ser
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/caches/gradle_models.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/.idea/caches/gradle_models.ser
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_android_28.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_core_common_1_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_core_runtime_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_lifecycle_common_1_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_cardview_v7_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_collections_28_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_1_1_3_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_cursoradapter_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_customview_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_design_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_documentfile_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_drawerlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_interpolator_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_loader_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_print_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_recyclerview_v7_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_annotations_28_0_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_compat_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_core_ui_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_core_utils_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_fragment_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_media_compat_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_v4_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_test_espresso_espresso_core_3_0_2_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_2_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_test_monitor_1_0_2_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_test_runner_1_0_2_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_transition_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_android_support_viewpager_28_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_github_bumptech_glide_annotations_4_9_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_github_bumptech_glide_disklrucache_4_9_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_github_bumptech_glide_gifdecoder_4_9_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_github_bumptech_glide_glide_4_9_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_jaeger_statusbarutil_library_1_4_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__de_hdodenhof_circleimageview_3_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__junit_junit_4_12_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/libraries/Gradle__org_litepal_android_core_2_0_0_aar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.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 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | defaultConfig {
6 | applicationId "com.example.musicplayer"
7 | minSdkVersion 21
8 | targetSdkVersion 28
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:28.0.0'
24 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
25 | implementation 'com.android.support:support-v4:28.0.0'
26 | implementation 'com.android.support:design:28.0.0'
27 | implementation 'de.hdodenhof:circleimageview:3.0.0'
28 | implementation 'com.jaeger.statusbarutil:library:1.4.0'
29 | implementation("com.squareup.okhttp3:okhttp:3.12.0")
30 | implementation 'com.github.bumptech.glide:glide:4.9.0'
31 | annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
32 | implementation 'org.litepal.android:core:2.0.0'
33 | testImplementation 'junit:junit:4.12'
34 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
35 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
36 | }
37 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/debug/app.aab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/debug/app.aab
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/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 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/release/app.aab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/release/app.aab
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/androidTest/java/com/example/musicplayer/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
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() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.example.musicplayer", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
18 |
19 |
20 |
21 |
22 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/assets/litepal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Login/DBHelper.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.Login;
2 |
3 | import android.content.Context;
4 | import android.database.sqlite.SQLiteDatabase;
5 | import android.database.sqlite.SQLiteOpenHelper;
6 |
7 |
8 | public class DBHelper extends SQLiteOpenHelper {
9 |
10 | private final static int DATABASE_VERSION = 1;
11 | private final static String DATABASE_NAME = "Data.db";
12 | public DBHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version){
13 | super(context, DATABASE_NAME, null, DATABASE_VERSION);
14 | }
15 |
16 | @Override
17 | public void onCreate(SQLiteDatabase db) {
18 | //创建表
19 | String usersInfo_table = "create table usertable" +
20 | "(id integer primary key autoincrement, username text," +
21 | "password text)";
22 | db.execSQL(usersInfo_table);
23 |
24 | }
25 |
26 | @Override
27 | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
28 | db.execSQL("alter table usertable add column other string");
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Login/DBManager.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.Login;
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.List;
9 |
10 |
11 | public class DBManager {
12 | private DBHelper dbHelper;
13 | private SQLiteDatabase db;
14 |
15 | public DBManager(Context context){
16 | // dbHelper = new DBHelper(this, "Data.db", context, 1);
17 | //获取实例化对象
18 | // db = dbHelper.getWritableDatabase();
19 | }
20 |
21 | /**
22 | * add UsersInfo List
23 | * */
24 | public void add(List usersInfos){
25 | db.beginTransaction();//开始事务
26 | for (UsersInfo usersInfo : usersInfos){
27 | db.execSQL("insert into usertable values(null,?,?)",new Object[]{
28 | usersInfo.name,usersInfo.password
29 | });
30 | }
31 | db.setTransactionSuccessful();//设置事务完成
32 | db.endTransaction();//结束事务
33 | }
34 |
35 | /**
36 | * add UserInfo String.etc
37 | * */
38 | public void add(String username,String userpassword){
39 | db.beginTransaction();
40 | db.execSQL("insert into usertable value(null,?,?)",new Object[]{
41 | username,userpassword
42 | });
43 | }
44 | /**
45 | * update info
46 | **/
47 | public void update(){
48 |
49 | }
50 |
51 | /**
52 | * delete previous info
53 | * 根据age的范围来删除使用者信息
54 | * */
55 | public void delete(UsersInfo usersInfo){
56 | db.delete("usertable","age >= ?",new String[]{String.valueOf(usersInfo.age)});
57 | }
58 |
59 | /**
60 | * query all userInfo return list
61 | * */
62 | public List query(){
63 | ArrayList usersInfos = new ArrayList<>();
64 | Cursor c = queryTheCursor();
65 | while (c.moveToNext()){
66 | UsersInfo usersInfo = new UsersInfo();
67 | usersInfo._id = c.getInt(c.getColumnIndex("_id"));
68 | usersInfo.name = c.getString(c.getColumnIndex("name"));
69 | usersInfo.password = c.getString(c.getColumnIndex("password"));
70 | usersInfo.age = c.getInt(c.getColumnIndex("age"));
71 | usersInfo.info = c.getString(c.getColumnIndex("info"));
72 | usersInfos.add(usersInfo);
73 | }
74 | c.close();
75 | return usersInfos;
76 | }
77 |
78 | /**
79 | * query all userInfo return cursor
80 | * */
81 | public Cursor queryTheCursor(){
82 | Cursor c = db.rawQuery("SELECT * FROM usertable", null);
83 | return c;
84 | }
85 |
86 | /**
87 | * close database
88 | * */
89 | public void closeDB(){
90 | db.close();
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Login/ForgotInfo_activity.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.Login;
2 |
3 | import android.app.DatePickerDialog;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.support.annotation.Nullable;
7 | import android.support.v7.app.AppCompatActivity;
8 | import android.view.View;
9 | import android.widget.AdapterView;
10 | import android.widget.Button;
11 | import android.widget.CheckBox;
12 | import android.widget.DatePicker;
13 | import android.widget.EditText;
14 | import android.widget.Spinner;
15 | import android.widget.TextView;
16 | import android.widget.Toast;
17 | import android.widget.ToggleButton;
18 |
19 | import com.example.musicplayer.R;
20 |
21 | import java.util.Calendar;
22 | import java.util.Date;
23 | import java.util.Locale;
24 |
25 | public class ForgotInfo_activity extends AppCompatActivity {
26 | private EditText myName;
27 | private EditText myPwd;
28 | private EditText myRePwd;
29 | private ToggleButton mySex;
30 | private EditText myBirth;
31 | private Spinner myDegree;
32 | private CheckBox myAccept;
33 | private Button mySubmit;
34 | private TextView txtPrint;
35 | private int myYear,myMonth,myDay;
36 | private String myDegreeTemp;
37 | private String msg;
38 | @Override
39 | protected void onCreate(@Nullable Bundle savedInstanceState) {
40 | super.onCreate(savedInstanceState);
41 | setContentView(R.layout.forgotinfo_activity);
42 | findViews();
43 |
44 | myBirth.setOnClickListener(new View.OnClickListener() {
45 | @Override
46 | public void onClick(View v) {
47 | DatePickerDialog datePickerDialog=new
48 | DatePickerDialog(ForgotInfo_activity.this,DateListener,myYear,myMonth,myDay);
49 | datePickerDialog.show();
50 | }
51 | });
52 | Spinner.OnItemSelectedListener listener=new Spinner.OnItemSelectedListener(){
53 | @Override
54 | public void onItemSelected(AdapterView> parent, View view, int position, long id) {
55 | myDegreeTemp=parent.getItemAtPosition(position).toString();
56 | }
57 | @Override
58 | public void onNothingSelected(AdapterView> parent) {
59 | myDegreeTemp="未知";
60 | }
61 | };
62 | myDegree.setOnItemSelectedListener(listener);
63 | }
64 |
65 |
66 | private void findViews(){
67 | myName=(EditText)findViewById(R.id.edtName);
68 | myPwd=(EditText)findViewById(R.id.edtPwd);
69 | myRePwd=(EditText)findViewById(R.id.edtRePwd);
70 | mySex=(ToggleButton)findViewById(R.id.toggleButtonSex);
71 | myBirth=(EditText)findViewById(R.id.edtBirth);
72 | myDegree=(Spinner)findViewById(R.id.spinnerDegree);
73 | myAccept=(CheckBox)findViewById(R.id.checkBoxAccept);
74 | mySubmit=(Button)findViewById(R.id.buttonSubmit);
75 | //初始化日历
76 | Calendar calendar=Calendar.getInstance(Locale.CHINA);
77 | Date date=new Date();
78 | calendar.setTime(date);
79 | myYear=calendar.get(Calendar.YEAR)-20;
80 | myMonth=calendar.get(Calendar.MONTH);;
81 | myDay=calendar.get(Calendar.DAY_OF_MONTH);
82 | }
83 | private DatePickerDialog.OnDateSetListener DateListener=new DatePickerDialog.OnDateSetListener() {
84 | @Override
85 | public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {
86 | myYear=year;
87 | myMonth=month;
88 | myDay=dayOfMonth;
89 | myBirth.setText(myYear+"年"+(myMonth+1)+"月"+myDay+"日");
90 | }
91 | };
92 | public void onCheckBoxClick(View view){
93 | if(myAccept.isChecked()){
94 | if(isValue(myPwd))
95 | mySubmit.setEnabled(true);
96 | else
97 | myAccept.setChecked(false);
98 | }
99 | else
100 | mySubmit.setEnabled(false);
101 | }
102 | private boolean isValue(EditText editText){
103 | String pwd=myPwd.getText().toString();
104 | String repwd=myRePwd.getText().toString();
105 | if(!repwd.equals(pwd)){
106 | myRePwd.setError("两次输入不一致!");
107 | return false;
108 | }
109 | else
110 | return true;
111 | }
112 | public void onSubmitClick(View view){
113 | Toast.makeText(this, "提交成功", Toast.LENGTH_SHORT).show();
114 | Intent intent = new Intent(ForgotInfo_activity.this, Login_Activity.class);
115 | startActivity(intent);
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Login/UsersInfo.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.Login;
2 |
3 | public class UsersInfo {
4 | public int _id;
5 | public String name;
6 | public String password;
7 | public int age;
8 | public String info;
9 |
10 | public UsersInfo(){
11 |
12 | }
13 |
14 | public UsersInfo(String name){
15 | this.name = name;
16 | }
17 | public UsersInfo(String name, String password){
18 | this.name = name;
19 | this.password = password;
20 | }
21 |
22 | public UsersInfo(String name, int age, String info){
23 | this.name = name;
24 | this.age = age;
25 | this.info = info;
26 | }
27 | public UsersInfo(String name, String password, int age, String info){
28 | this.name = name;
29 | this.password = password;
30 | this.age = age;
31 | this.info = info;
32 | }
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Music.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
2 |
3 | import java.util.Objects;
4 |
5 | public class Music {
6 |
7 | public String artist; //歌手
8 | public String title; //歌曲名
9 | public String songUrl; //歌曲地址
10 | public String imgUrl; //专辑图片地址
11 | public boolean isOnlineMusic;
12 |
13 | public Music(String songUrl, String title, String artist, String imgUrl, boolean isOnlineMusic) {
14 | this.title = title;
15 | this.artist = artist;
16 | this.songUrl = songUrl;
17 | this.imgUrl = imgUrl;
18 | this.isOnlineMusic = isOnlineMusic;
19 | }
20 |
21 | //重写equals方法, 使得可以用contains方法来判断列表中是否存在Music类的实例
22 | @Override
23 | public boolean equals(Object o) {
24 | if (this == o) return true;
25 | if (o == null || getClass() != o.getClass()) return false;
26 | Music music = (Music) o;
27 | return Objects.equals(title, music.title);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/MusicAdapter.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.LinearLayout;
9 | import android.widget.TextView;
10 |
11 | import java.util.List;
12 |
13 | public class MusicAdapter extends BaseAdapter {
14 |
15 | private List mData;
16 | private LayoutInflater mInflater;
17 | private int mResource;
18 | private onMoreButtonListener monMoreButtonListener;
19 |
20 | public MusicAdapter(Context context, int resId, List data)
21 | {
22 | mData = data;
23 | mInflater = LayoutInflater.from(context);
24 | mResource = resId;
25 | }
26 |
27 | @Override
28 | public int getCount() {
29 | return mData != null ? mData.size() : 0;
30 | }
31 |
32 | @Override
33 | public Object getItem(int position) {
34 | return mData != null ? mData.get(position): null ;
35 | }
36 |
37 | @Override
38 | public long getItemId(int position) {
39 | return position;
40 | }
41 |
42 | @Override
43 | public View getView(final int position, View convertView, ViewGroup parent) {
44 |
45 | Music item = mData.get(position);
46 | View view;
47 | ViewHolder holder;
48 |
49 | if (convertView == null) {
50 | view = mInflater.inflate(mResource, parent, false);
51 | holder = new ViewHolder();
52 | holder.title = view.findViewById(R.id.music_title);
53 | holder.artist = view.findViewById(R.id.music_artist);
54 | holder.more = view.findViewById(R.id.more);
55 | view.setTag(holder);
56 | }
57 | else {
58 | view = convertView;
59 | holder = (ViewHolder) view.getTag();
60 | }
61 | holder.title.setText(item.title);
62 | holder.artist.setText(item.artist);
63 | holder.more.setOnClickListener(new View.OnClickListener() {
64 | @Override
65 | public void onClick(View v) {
66 | monMoreButtonListener.onClick(position);
67 | }
68 | });
69 | return view;
70 | }
71 |
72 | class ViewHolder{
73 | TextView title;
74 | TextView artist;
75 | LinearLayout more;
76 | }
77 |
78 | public interface onMoreButtonListener {
79 | void onClick(int i);
80 | }
81 |
82 | public void setOnMoreButtonListener(onMoreButtonListener monMoreButtonListener) {
83 | this.monMoreButtonListener = monMoreButtonListener;
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/PlayingMusicAdapter.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.ImageView;
9 | import android.widget.TextView;
10 |
11 | import java.util.List;
12 |
13 | public class PlayingMusicAdapter extends BaseAdapter {
14 |
15 | private List mData;
16 | private LayoutInflater mInflater;
17 | private int mResource;
18 | private Context mContext;
19 | private onDeleteButtonListener monDeleteButtonListener;
20 |
21 | public PlayingMusicAdapter(Context context, int resId, List data)
22 | {
23 | mContext = context;
24 | mData = data;
25 | mInflater = LayoutInflater.from(context);
26 | mResource = resId;
27 | }
28 |
29 | @Override
30 | public int getCount() {
31 | return mData != null ? mData.size() : 0;
32 | }
33 |
34 | @Override
35 | public Object getItem(int position) {
36 | return mData != null ? mData.get(position): null ;
37 | }
38 |
39 | @Override
40 | public long getItemId(int position) {
41 | return position;
42 | }
43 |
44 | @Override
45 | public View getView(final int position, View convertView, ViewGroup parent) {
46 |
47 | Music item = mData.get(position);
48 | View view;
49 | ViewHolder holder;
50 |
51 | if (convertView == null) {
52 | view = mInflater.inflate(mResource, parent, false);
53 | holder = new ViewHolder();
54 | holder.title = view.findViewById(R.id.playingmusic_title);
55 | holder.artist = view.findViewById(R.id.playingmusic_artist);
56 | holder.delete = view.findViewById(R.id.delete);
57 | view.setTag(holder);
58 | }
59 | else {
60 | view = convertView;
61 | holder = (ViewHolder) view.getTag();
62 | }
63 | holder.title.setText(item.title);
64 | holder.artist.setText(item.artist);
65 | holder.delete.setOnClickListener(new View.OnClickListener() {
66 | @Override
67 | public void onClick(View v) {
68 | monDeleteButtonListener.onClick(position);
69 | }
70 | });
71 | return view;
72 | }
73 |
74 | class ViewHolder{
75 | TextView title;
76 | TextView artist;
77 | ImageView delete;
78 | }
79 |
80 | public interface onDeleteButtonListener {
81 | void onClick(int i);
82 | }
83 |
84 | public void setOnDeleteButtonListener(onDeleteButtonListener monDeleteButtonListener) {
85 | this.monDeleteButtonListener = monDeleteButtonListener;
86 | }
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/Utils.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
2 |
3 | import android.content.ContentResolver;
4 | import android.graphics.Bitmap;
5 | import android.graphics.BitmapFactory;
6 | import android.net.Uri;
7 |
8 | import java.io.InputStream;
9 | import java.text.SimpleDateFormat;
10 | import java.util.Date;
11 |
12 | public class Utils {
13 |
14 | //累计听歌数量
15 | public static int count;
16 |
17 | //播放模式
18 | public static final int TYPE_ORDER = 4212; //顺序播放
19 | public static final int TYPE_SINGLE = 4313; //单曲循环
20 | public static final int TYPE_RANDOM = 4414; //随机播放
21 |
22 | // 获取本地音乐封面图片
23 | public static Bitmap getLocalMusicBmp(ContentResolver res, String musicPic) {
24 | InputStream in;
25 | Bitmap bmp = null;
26 | try {
27 | Uri uri = Uri.parse(musicPic);
28 | in = res.openInputStream(uri);
29 | BitmapFactory.Options sBitmapOptions = new BitmapFactory.Options();
30 | bmp = BitmapFactory.decodeStream(in, null, sBitmapOptions);
31 | in.close();
32 | }
33 | catch (Exception e) {
34 | e.printStackTrace();
35 | }
36 | return bmp;
37 | }
38 |
39 | //格式化歌曲时间
40 | public static String formatTime(long time) {
41 | SimpleDateFormat dateFormat = new SimpleDateFormat("mm:ss");
42 | Date data = new Date(time);
43 | return dateFormat.format(data);
44 | }
45 | }
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/activity/SplashActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.activity;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.os.Handler;
6 | import android.support.v7.app.AppCompatActivity;
7 | import android.view.Window;
8 |
9 | import com.example.musicplayer.R;
10 |
11 | public class SplashActivity extends AppCompatActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | getWindow().requestFeature(Window.FEATURE_NO_TITLE);
17 | setContentView(R.layout.activity_splash);
18 |
19 | Handler handler = new Handler();
20 | // 延迟SPLASH_DISPLAY_LENGHT时间然后跳转到MainActivity
21 | int SPLASH_DISPLAY_LENGHT = 1000;
22 | handler.postDelayed(new Runnable() {
23 | @Override
24 | public void run() {
25 | Intent intent = new Intent(SplashActivity.this, MainActivity.class);
26 | startActivity(intent);
27 | finish();
28 | }
29 | }, SPLASH_DISPLAY_LENGHT);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/activity/WebActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.activity;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.view.KeyEvent;
6 | import android.webkit.WebSettings;
7 | import android.webkit.WebView;
8 | import android.webkit.WebViewClient;
9 |
10 | import com.example.musicplayer.R;
11 |
12 | public class WebActivity extends AppCompatActivity {
13 | private WebView myWebClient;
14 | private final String mimeType = "text/html";
15 | private final String encoding = "utf-8";
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.wenview);
21 | findViews();
22 | loadWebPages();
23 |
24 | myWebClient.setWebViewClient(new WebViewClient(){
25 | @Override
26 | public boolean shouldOverrideUrlLoading(WebView view,String url){
27 | view.loadUrl(url);
28 | return true;
29 | }
30 | });
31 | }
32 |
33 | private void findViews(){
34 | myWebClient=(WebView)findViewById(R.id.myWebClient);
35 | }
36 |
37 | private void loadWebPages(){
38 | // myWebClient.loadDataWithBaseURL(null,"https://m.baidu.com",mimeType,encoding,null);
39 | myWebClient.getSettings().setJavaScriptEnabled(true);
40 | myWebClient.loadUrl("http://www.yinyuetai.com/");
41 | //支持javascript
42 | myWebClient.getSettings().setJavaScriptEnabled(true);
43 | // 设置可以支持缩放
44 | myWebClient.getSettings().setSupportZoom(true);
45 | // 设置出现缩放工具
46 | myWebClient.getSettings().setBuiltInZoomControls(true);
47 | //扩大比例的缩放
48 | myWebClient.getSettings().setUseWideViewPort(true);
49 | //自适应屏幕
50 | myWebClient.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
51 | myWebClient.getSettings().setLoadWithOverviewMode(true);
52 | }
53 | @Override
54 | public boolean onKeyDown(int keyCode,KeyEvent event){
55 | if (keyCode== KeyEvent.KEYCODE_BACK&&myWebClient.canGoBack()){
56 | myWebClient.goBack();
57 | return true;
58 | }
59 | return super.onKeyDown(keyCode,event);
60 | }
61 |
62 | }
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/useLitepal/LocalMusic.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.useLitepal;
2 |
3 | import org.litepal.crud.LitePalSupport;
4 |
5 | public class LocalMusic extends LitePalSupport {
6 |
7 | public String artist; //歌手
8 | public String title; //歌曲名
9 | public String songUrl; //歌曲地址
10 | public String imgUrl;
11 | public boolean isOnlineMusic;
12 |
13 | public LocalMusic(String songUrl, String title, String artist, String imgUrl, boolean isOnlineMusic) {
14 | this.title = title;
15 | this.artist = artist;
16 | this.songUrl = songUrl;
17 | this.imgUrl = imgUrl;
18 | this.isOnlineMusic = isOnlineMusic;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/useLitepal/MyMusic.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.useLitepal;
2 |
3 | import org.litepal.crud.LitePalSupport;
4 |
5 | public class MyMusic extends LitePalSupport {
6 |
7 | public String artist; //歌手
8 | public String title; //歌曲名
9 | public String songUrl; //歌曲地址
10 | public String imgUrl;
11 | public boolean isOnlineMusic;
12 |
13 | public MyMusic(String songUrl, String title, String artist, String imgUrl, boolean isOnlineMusic) {
14 | this.title = title;
15 | this.artist = artist;
16 | this.songUrl = songUrl;
17 | this.imgUrl = imgUrl;
18 | this.isOnlineMusic = isOnlineMusic;
19 | }
20 | }
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/useLitepal/PlayingMusic.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.useLitepal;
2 |
3 | import org.litepal.crud.LitePalSupport;
4 |
5 | public class PlayingMusic extends LitePalSupport {
6 |
7 | public String artist; //歌手
8 | public String title; //歌曲名
9 | public String songUrl; //歌曲地址
10 | public String imgUrl;
11 | public boolean isOnlineMusic;
12 |
13 | public PlayingMusic(String songUrl, String title, String artist, String imgUrl, boolean isOnlineMusic) {
14 | this.title = title;
15 | this.artist = artist;
16 | this.songUrl = songUrl;
17 | this.imgUrl = imgUrl;
18 | this.isOnlineMusic = isOnlineMusic;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/java/com/example/musicplayer/widget/RotateAnimator.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer.widget;
2 |
3 | import android.content.Context;
4 | import android.graphics.Canvas;
5 | import android.support.v7.widget.AppCompatImageView;
6 | import android.view.animation.Animation;
7 | import android.view.animation.LinearInterpolator;
8 | import android.view.animation.RotateAnimation;
9 | import android.view.animation.Transformation;
10 | import android.widget.ImageView;
11 |
12 | public class RotateAnimator extends AppCompatImageView {
13 | ImageView imageView;
14 | ImageView Needle;
15 | private float angle, angle2;
16 | private float viewHeight, viewWidth;
17 | private MusicAnim musicAnim;
18 |
19 | public RotateAnimator(Context context, ImageView imageView, ImageView imageView1) {
20 | super(context);
21 | init(imageView, imageView1);
22 | }
23 |
24 | public void init(ImageView imageView, ImageView imageView1) {
25 | this.imageView = imageView;
26 | this.Needle = imageView1;
27 | angle = angle2 = 0;
28 | viewHeight = viewWidth = 1;
29 | }
30 |
31 | @Override
32 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
33 | super.onMeasure(widthMeasureSpec, heightMeasureSpec);
34 | viewHeight = getMeasuredHeight();
35 | viewWidth = getMeasuredWidth();
36 | }
37 |
38 | @Override
39 | protected void onDraw(Canvas canvas) {
40 | canvas.rotate(angle2, viewWidth/2, viewHeight/2);
41 | super.onDraw(canvas);
42 | }
43 |
44 | public class MusicAnim extends RotateAnimation {
45 | public MusicAnim(float fromD, float toD, float pivotX, float pivotY) {
46 | super(fromD, toD, Animation.RELATIVE_TO_SELF, pivotX, Animation.RELATIVE_TO_SELF, pivotY);
47 | }
48 |
49 | @Override
50 | protected void applyTransformation(float interpolatedTime, Transformation t) {
51 | super.applyTransformation(interpolatedTime, t);
52 | angle = interpolatedTime * 360;
53 | }
54 | }
55 |
56 | public void set_Needle() {
57 | final RotateAnimation animation1 = new RotateAnimation(0f, -35f, Animation.RELATIVE_TO_SELF, 0.1f, Animation.RELATIVE_TO_SELF, 0.15f);
58 | animation1.setDuration(1);
59 | animation1.setRepeatCount(0);
60 | animation1.setFillAfter(true);
61 | animation1.setStartOffset(0);
62 | Needle.startAnimation(animation1);
63 | }
64 |
65 | final RotateAnimation animation = new RotateAnimation(-35f, 0f, Animation.RELATIVE_TO_SELF, 0.1f, Animation.RELATIVE_TO_SELF, 0.15f);
66 | private void settime() {
67 | //animation.setInterpolator(new LinearInterpolator());
68 | animation.setDuration(400);
69 | animation.setRepeatCount(0);
70 | animation.setStartOffset(0);
71 | animation.setFillAfter(true);
72 | }
73 |
74 | public void playAnimator() {
75 | settime();
76 | musicAnim = new MusicAnim(0, 3600000, viewWidth/2, viewHeight/2);
77 | musicAnim.setDuration(360000000);
78 | musicAnim.setInterpolator(new LinearInterpolator());
79 | musicAnim.setRepeatCount(-1);
80 | Needle.startAnimation(animation);
81 | imageView.startAnimation(musicAnim);
82 | invalidate();
83 | }
84 |
85 | public void pauseAnimator() {
86 | angle2 = (angle2 + angle) % 360;
87 | musicAnim.cancel();
88 | animation.cancel();
89 | invalidate();
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/anim/bottom_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/anim/bottom_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/anim/bottom_silent.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_disc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_disc.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_disc_blackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_disc_blackground.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_needle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-nodpi/ic_needle.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/btn_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/eye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/eye.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/invisible.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/invisible.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/layout_border.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/people_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/people_fill.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/visible.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-v24/visible.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/bofang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/bofang.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/delete.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/gengduo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/gengduo.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/liebiao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/liebiao.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/shuaxin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/shuaxin.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/zanting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xhdpi/zanting.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/app_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/app_img.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/defult_music_img.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/defult_music_img.jpg
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/defult_user_img.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/defult_user_img.jpg
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/ic_blackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/ic_blackground.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/ic_seekbar_thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/ic_seekbar_thumb.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/splash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable-xxhdpi/splash.jpg
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_camera.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_gallery.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_manage.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_send.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_share.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_menu_slideshow.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_next.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_pause.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_play.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_playrecycler.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_playrecycler.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_pre.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_random.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_random.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_singlerecycler.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/ic_singlerecycler.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/drawable/liutifei.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/drawable/liutifei.jpg
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_localmusic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
21 |
22 |
23 |
26 |
33 |
42 |
50 |
51 |
52 |
53 |
57 |
58 |
63 |
64 |
68 |
74 |
83 |
90 |
103 |
110 |
111 |
119 |
127 |
128 |
129 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_m.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
23 |
24 |
25 |
26 |
27 |
31 |
32 |
41 |
42 |
46 |
47 |
56 |
57 |
58 |
59 |
60 |
61 |
69 |
70 |
80 |
81 |
82 |
91 |
92 |
100 |
101 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
19 |
20 |
28 |
29 |
38 |
39 |
40 |
45 |
46 |
50 |
51 |
56 |
57 |
65 |
66 |
72 |
73 |
85 |
86 |
92 |
93 |
94 |
102 |
103 |
111 |
112 |
113 |
114 |
115 |
122 |
123 |
124 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_onlinemusic.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
22 |
23 |
24 |
27 |
34 |
43 |
44 |
45 |
46 |
50 |
51 |
52 |
57 |
58 |
62 |
68 |
77 |
84 |
97 |
104 |
105 |
113 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_player.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
18 |
19 |
23 |
34 |
38 |
39 |
40 |
41 |
42 |
47 |
48 |
49 |
50 |
56 |
57 |
58 |
59 |
67 |
68 |
69 |
74 |
75 |
76 |
84 |
85 |
86 |
91 |
92 |
93 |
94 |
95 |
96 |
107 |
108 |
109 |
115 |
116 |
117 |
122 |
123 |
124 |
131 |
132 |
133 |
138 |
139 |
145 |
146 |
147 |
148 |
149 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/activity_splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/forgotinfo_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
8 |
9 |
15 |
16 |
17 |
18 |
23 |
24 |
30 |
31 |
32 |
33 |
38 |
39 |
45 |
46 |
47 |
52 |
58 |
59 |
60 |
65 |
72 |
73 |
74 |
79 |
85 |
86 |
87 |
92 |
97 |
98 |
99 |
107 |
117 |
118 |
121 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/layout_discview.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
16 |
17 |
25 |
26 |
27 |
34 |
35 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/music_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
21 |
22 |
29 |
30 |
31 |
41 |
42 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/nav_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
26 |
27 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/playinglist_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
18 |
19 |
25 |
26 |
33 |
34 |
35 |
44 |
45 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/register_activity.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
18 |
25 |
26 |
32 |
36 |
44 |
51 |
52 |
56 |
60 |
61 |
69 |
70 |
78 |
79 |
80 |
84 |
85 |
89 |
90 |
98 |
99 |
107 |
108 |
109 |
110 |
115 |
116 |
124 |
125 |
134 |
135 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/layout/wenview.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
13 |
14 |
15 |
20 |
21 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/menu/nav_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values-v21/xueli.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - 博士
5 | - 硕士
6 | - 学士
7 |
8 |
9 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 | #000000
7 | #ffffff
8 | #CDCDB4
9 | #449dd5
10 | #5dc534
11 |
12 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 | 8dp
6 | 176dp
7 | 16dp
8 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | 201624131221
3 | Main2Activity
4 | Open navigation drawer
5 | Close navigation drawer
6 | Android Studio
7 | android.studio@android.com
8 | Navigation header
9 | Settings
10 |
11 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
16 |
17 |
22 |
23 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/app/src/test/java/com/example/musicplayer/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.musicplayer;
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() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | jcenter()
8 | mavenCentral()
9 | }
10 | dependencies {
11 | classpath 'com.android.tools.build:gradle:3.2.0'
12 |
13 |
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | jcenter()
23 | mavenCentral()
24 | }
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
15 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器/MusicPlayer/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/音乐播放器/MusicPlayer/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/音乐播放器/README.md:
--------------------------------------------------------------------------------
1 | # SimpleMusic
2 |
3 | ## 1. 开发环境
4 | - AndroidStudio 3.2
5 | - AndroidSDK 5.0
6 | - gradle 4.6
7 |
8 | ## 2. 模块划分
9 |
10 | | 模块 | 简要说明 |
11 | |--|--|
12 | | 后台服务(Service) | 提供音乐播放的基本功能, 对外提供播放控制和列表操作的接口 |
13 | | 主界面 | 展示我的音乐歌单, 可以对歌单里的音乐进行播放, 删除等操作 |
14 | | 本地音乐 | 展示本地音乐列表, 提供对本地音乐的读取, 并且可以播放, 添加收藏, 删除 |
15 | | 在线音乐 | 展示当前热门歌曲, 提供播放,添加收藏,删除等功能,需要时可以刷新列表 |
16 | | 播放器界面 | 展示当前音乐的信息, 控制播放模式, 上一曲, 播放/暂停, 下一曲,以及查看和操作当前播放列表 |
17 |
18 | ## 3. 实现功能
19 | 1. 展示出本地的所有音乐文件,并显示相关信息
20 | 2. 对本地音乐进行播放, 添加歌单, 删除等操作
21 | 3. 播放过程中,可以暂停播放、恢复播放、上一首、下一首、拖动音乐进度条到任意时间点播放
22 | 4. 播放时,能显示当前播放音乐的进度,指示播放的时间, 并加载专辑图片
23 | 5. 可以设置播放的顺序为顺序播放、单曲循环、随机播放等等
24 | 6. 音乐播放器等界面退出以后,音乐仍然能在后台播放
25 | 7. 每次启动音乐播放器,播放器装载之前的播放列表,并把列表中的第一首音乐作为默认的首播曲
26 | 8. 再次打开播放器,能显示当前音乐的实时信息
27 | 9. 可以连接到网络,播放网络上的音乐
28 | 10. 缓存网络音乐列表, 需要时刷新, 也可以添加歌单或者移除
29 | 11. 音频焦点控制, 被其他音频打断后能继续播放
30 |
31 | ## 4. 简要说明
32 |
33 | ### 各java文件的作用
34 | | 文件名 | 功能 |
35 | |--|--|
36 | | /java/useLitepal/*.java | litepal采用对象映射操作数据库, 每个文件对应一张表 |
37 | | /java/widget/RotateAnimator.java | 唱盘动画制作 |
38 | | /java/Music.java | 音乐类 |
39 | | /java/MusicAdapter.java | 音乐列表显示音乐的适配器 |
40 | | /java/PlayingMusicAdapter.java | 播放列表显示音乐的适配器 |
41 | | /java/SplashActivity.java | 欢迎界面 |
42 | | /java/MainActivity.java | 主界面 |
43 | | /java/LocalMusicActivity.java | 本地音乐界面 |
44 | | /java/OlineMusicActivity.java | 在线音乐界面 |
45 | | /java/PlayerActivity.java | 播放器界面 |
46 | | /java/MusicService.java | 音乐服务 |
47 | | /java/Utils.java | 工具类, 封装了一些常用操作 |
48 |
49 | ### 各xml文件的作用
50 | | 文件名 | 功能 |
51 | |--|--|
52 | | /res/anim/*.xml | Activity切换动画 |
53 | | /res/layout/activity_splash.xml | 欢迎界面布局 |
54 | | /res/layout/ activity_main.xml | 主界面布局 |
55 | | /res/layout/ activity_localmusic.xml | 本地音乐界面布局 |
56 | | /res/layout/ activity_onlinemusic.xml | 在线音乐界面布局 |
57 | | /res/layout/ activity_player.xml | 播放器界面布局 |
58 | | /res/layout/music_item.xml | 音乐列表项布局 |
59 | | /res/layout/playinglist_item.xml | 播放列表项布局 |
60 | | /res/layout/layout_discview.xml | 播放器唱盘布局 |
61 | | /res/layout/nav_header.xml | 侧拉菜单头布局 |
62 | | /res/menu/main.xml | 主界面活动跳转菜单布局 |
63 | | /res/menu/nav_menu.xml | 侧拉菜单项布局 |
64 |
65 | ## 5. 效果图
66 | [](https://imgchr.com/i/Acw7Ks)
67 | [](https://imgchr.com/i/Acwovj)
68 | [](https://imgchr.com/i/AcwI2Q)
69 | [](https://imgchr.com/i/Acw58g)
70 |
--------------------------------------------------------------------------------
/音乐播放器apk/app-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/音乐播放器apk/app-release.apk
--------------------------------------------------------------------------------
/音乐播放器apk/output.json:
--------------------------------------------------------------------------------
1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
--------------------------------------------------------------------------------
/高德地图/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/高德地图/.idea/caches/build_file_checksums.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/.idea/caches/build_file_checksums.ser
--------------------------------------------------------------------------------
/高德地图/.idea/caches/gradle_models.ser:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/.idea/caches/gradle_models.ser
--------------------------------------------------------------------------------
/高德地图/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/高德地图/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/高德地图/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/高德地图/.idea/externalDependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/高德地图/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/高德地图/.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 |
34 |
35 |
36 |
37 |
38 | Abstraction issuesJava
39 |
40 |
41 | Android
42 |
43 |
44 | Android > Lint > Correctness
45 |
46 |
47 | Android > Lint > Internationalization
48 |
49 |
50 | Android > Lint > Internationalization > Bidirectional Text
51 |
52 |
53 | Android > Lint > Security
54 |
55 |
56 | Android > Lint > Usability > Icons
57 |
58 |
59 | Assignment issuesGroovy
60 |
61 |
62 | Bitwise operation issuesJava
63 |
64 |
65 | C/C++
66 |
67 |
68 | Cloning issuesJava
69 |
70 |
71 | Code style issuesJava
72 |
73 |
74 | Control flow issuesJava
75 |
76 |
77 | CorrectnessLintAndroid
78 |
79 |
80 | Data flow issuesJava
81 |
82 |
83 | Declaration orderC/C++
84 |
85 |
86 | Gradle
87 |
88 |
89 | Groovy
90 |
91 |
92 | Initialization issuesJava
93 |
94 |
95 | Internationalization issuesJava
96 |
97 |
98 | Java
99 |
100 |
101 | LintAndroid
102 |
103 |
104 | Numeric issuesJava
105 |
106 |
107 | Performance issuesJava
108 |
109 |
110 | Potentially confusing code constructsGroovy
111 |
112 |
113 | Probable bugsGradle
114 |
115 |
116 | Probable bugsGroovy
117 |
118 |
119 | Probable bugsJava
120 |
121 |
122 | RELAX NG
123 |
124 |
125 | Serialization issuesJava
126 |
127 |
128 | Type checksC/C++
129 |
130 |
131 | Visibility issuesJava
132 |
133 |
134 |
135 |
136 | Android
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
--------------------------------------------------------------------------------
/高德地图/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/高德地图/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/高德地图/android/webkit/annotations.xml:
--------------------------------------------------------------------------------
1 |
2 | -
4 |
5 |
6 |
--------------------------------------------------------------------------------
/高德地图/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/高德地图/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "26.0.2"
6 | defaultConfig {
7 | applicationId "com.example.gaodemap"
8 | minSdkVersion 18
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | sourceSets {
21 | main {
22 | jniLibs.srcDirs = ['libs']
23 | }
24 | }
25 | }
26 |
27 | dependencies {
28 | compile fileTree(dir: 'libs', include: ['*.jar'])
29 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
30 | exclude group: 'com.android.support', module: 'support-annotations'
31 | })
32 | compile 'com.android.support:appcompat-v7:26.+'
33 | compile 'com.android.support.constraint:constraint-layout:1.0.2'
34 | compile 'com.amap.api:location:latest.integration'
35 | testCompile 'junit:junit:4.12'
36 | }
37 |
--------------------------------------------------------------------------------
/高德地图/app/libs/Amap_2DMap_V5.2.0_20170627.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/libs/Amap_2DMap_V5.2.0_20170627.jar
--------------------------------------------------------------------------------
/高德地图/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/goobird-iOS004/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/高德地图/app/src/androidTest/java/com/example/gaodemap/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.gaodemap;
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 | * Instrumentation 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.example.gaodemap", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/java/com/example/gaodemap/AmapActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.gaodemap;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import com.amap.api.location.AMapLocation;
6 | import com.amap.api.maps2d.AMap;
7 | import com.amap.api.maps2d.CameraUpdateFactory;
8 | import com.amap.api.maps2d.LocationSource;
9 | import com.amap.api.maps2d.MapView;
10 | import com.amap.api.maps2d.model.LatLng;
11 |
12 | public class AmapActivity extends AppCompatActivity implements LocationSource {
13 | private MapView mapView;
14 | private AMap aMap;
15 | private LocationSource.OnLocationChangedListener mListener = null;//定位监听器
16 | private LocationUtil locationUtil;
17 |
18 | @Override
19 | protected void onCreate(Bundle savedInstanceState) {
20 | super.onCreate(savedInstanceState);
21 | setContentView(R.layout.activity_amap);
22 |
23 | mapView = (MapView) findViewById(R.id.mapview);
24 | mapView.onCreate(savedInstanceState);
25 |
26 | init();
27 | }
28 |
29 | private void init() {
30 | if(aMap == null){
31 | aMap = mapView.getMap();
32 | }
33 |
34 | setLocationCallBack();
35 |
36 | //设置定位监听
37 | aMap.setLocationSource(this);
38 | //设置缩放级别
39 | aMap.moveCamera(CameraUpdateFactory.zoomTo(15));
40 | //显示定位层并可触发,默认false
41 | aMap.setMyLocationEnabled(true);
42 | }
43 |
44 | private void setLocationCallBack(){
45 | locationUtil = new LocationUtil();
46 | locationUtil.setLocationCallBack(new LocationUtil.ILocationCallBack() {
47 | @Override
48 | public void callBack(String str,double lat,double lgt,AMapLocation aMapLocation) {
49 |
50 | //根据获取的经纬度,将地图移动到定位位置
51 | aMap.moveCamera(CameraUpdateFactory.changeLatLng(new LatLng(lat,lgt)));
52 | mListener.onLocationChanged(aMapLocation);
53 | //添加定位图标
54 | aMap.addMarker(locationUtil.getMarkerOption(str,lat,lgt));
55 | }
56 | });
57 | }
58 |
59 | //定位激活回调
60 | @Override
61 | public void activate(OnLocationChangedListener onLocationChangedListener) {
62 | mListener = onLocationChangedListener;
63 |
64 | locationUtil.startLocate(getApplicationContext());
65 | }
66 |
67 | @Override
68 | public void deactivate() {
69 | mListener = null;
70 | }
71 |
72 | @Override
73 | protected void onPause() {
74 | super.onPause();
75 | //暂停地图的绘制
76 | mapView.onPause();
77 | }
78 |
79 | @Override
80 | protected void onDestroy() {
81 | super.onDestroy();
82 | //销毁地图
83 | mapView.onDestroy();
84 | }
85 |
86 | @Override
87 | protected void onResume() {
88 | super.onResume();
89 | //重新绘制加载地图
90 | mapView.onResume();
91 | }
92 |
93 | @Override
94 | public void onSaveInstanceState(Bundle outState) {
95 | super.onSaveInstanceState(outState);
96 | mapView.onSaveInstanceState(outState);
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/java/com/example/gaodemap/LocationUtil.java:
--------------------------------------------------------------------------------
1 | package com.example.gaodemap;
2 |
3 | import android.content.Context;
4 | import android.util.Log;
5 | import com.amap.api.location.AMapLocation;
6 | import com.amap.api.location.AMapLocationClient;
7 | import com.amap.api.location.AMapLocationClientOption;
8 | import com.amap.api.location.AMapLocationListener;
9 | import com.amap.api.maps2d.model.BitmapDescriptorFactory;
10 | import com.amap.api.maps2d.model.LatLng;
11 | import com.amap.api.maps2d.model.MarkerOptions;
12 |
13 | /**
14 | * Created by libo on 2018/2/2.
15 | */
16 |
17 | public class LocationUtil implements AMapLocationListener {
18 | private AMapLocationClient aMapLocationClient;
19 | private AMapLocationClientOption clientOption;
20 | private ILocationCallBack callBack;
21 |
22 | public void startLocate(Context context){
23 | aMapLocationClient = new AMapLocationClient(context);
24 |
25 | //设置监听回调
26 | aMapLocationClient.setLocationListener(this);
27 |
28 | //初始化定位参数
29 | clientOption = new AMapLocationClientOption();
30 | clientOption.setLocationMode(AMapLocationClientOption.AMapLocationMode.Battery_Saving);
31 | clientOption.setNeedAddress(true);
32 | clientOption.setOnceLocation(false);
33 | //设置是否强制刷新WIFI,默认为强制刷新
34 | clientOption.setWifiActiveScan(true);
35 | //设置是否允许模拟位置,默认为false,不允许模拟位置
36 | clientOption.setMockEnable(false);
37 | //设置定位间隔
38 | clientOption.setInterval(2000);
39 | aMapLocationClient.setLocationOption(clientOption);
40 |
41 | aMapLocationClient.startLocation();
42 | }
43 |
44 | //完成定位回调
45 | @Override
46 | public void onLocationChanged(AMapLocation aMapLocation) {
47 | if(aMapLocation != null){
48 | if(aMapLocation.getErrorCode() == 0){
49 | //定位成功完成回调
50 | String country = aMapLocation.getCountry();
51 | String province = aMapLocation.getProvince();
52 | String city = aMapLocation.getCity();
53 | String district = aMapLocation.getDistrict();
54 | String street = aMapLocation.getStreet();
55 | double lat = aMapLocation.getLatitude();
56 | double lgt = aMapLocation.getLongitude();
57 |
58 | callBack.callBack(country + province + city + district + street,lat,lgt,aMapLocation);
59 | }else{
60 | //显示错误信息ErrCode是错误码,errInfo是错误信息,详见错误码表。
61 | Log.e("AmapError", "location Error, ErrCode:"
62 | + aMapLocation.getErrorCode() + ", errInfo:"
63 | + aMapLocation.getErrorInfo());
64 | }
65 | }
66 | }
67 |
68 | /**
69 | * 自定义图标
70 | * @return
71 | */
72 | public MarkerOptions getMarkerOption(String str,double lat,double lgt){
73 | MarkerOptions markerOptions = new MarkerOptions();
74 | markerOptions.icon(BitmapDescriptorFactory.fromResource(R.mipmap.position));
75 | markerOptions.position(new LatLng(lat,lgt));
76 | markerOptions.title(str);
77 | markerOptions.snippet("纬度:" + lat + " 经度:" + lgt);
78 | markerOptions.period(100);
79 |
80 | return markerOptions;
81 | }
82 |
83 | public interface ILocationCallBack{
84 | void callBack(String str,double lat,double lgt,AMapLocation aMapLocation);
85 | }
86 |
87 | public void setLocationCallBack(ILocationCallBack callBack){
88 | this.callBack = callBack;
89 | }
90 |
91 | }
92 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/layout/activity_amap.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxhdpi/position.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxhdpi/position.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/mipmap-xxxhdpi/liutifei.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/app/src/main/res/mipmap-xxxhdpi/liutifei.jpg
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | 高德地图
3 |
4 |
--------------------------------------------------------------------------------
/高德地图/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/高德地图/app/src/test/java/com/example/gaodemap/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.gaodemap;
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 | }
--------------------------------------------------------------------------------
/高德地图/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/高德地图/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 |
--------------------------------------------------------------------------------
/高德地图/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/高德地图/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Feb 02 11:24:14 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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/高德地图/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/高德地图/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/高德地图/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/高德地图apk/app.aab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liutixuan/musicplayer/dda0158e1c76371b518869439a7ae3cf876a1747/高德地图apk/app.aab
--------------------------------------------------------------------------------