Orange 6 mēneši atpakaļ
revīzija
7c73c4ca86
96 mainītis faili ar 3077 papildinājumiem un 0 dzēšanām
  1. 15 0
      CloudyMiusic/.gitignore
  2. 3 0
      CloudyMiusic/.idea/.gitignore
  3. 6 0
      CloudyMiusic/.idea/compiler.xml
  4. 20 0
      CloudyMiusic/.idea/gradle.xml
  5. 29 0
      CloudyMiusic/.idea/misc.xml
  6. 1 0
      CloudyMiusic/app/.gitignore
  7. 46 0
      CloudyMiusic/app/build.gradle
  8. 21 0
      CloudyMiusic/app/proguard-rules.pro
  9. 26 0
      CloudyMiusic/app/src/androidTest/java/com/example/cloudymiusic/ExampleInstrumentedTest.java
  10. 48 0
      CloudyMiusic/app/src/main/AndroidManifest.xml
  11. 88 0
      CloudyMiusic/app/src/main/java/adapter/MyAdapter.java
  12. 105 0
      CloudyMiusic/app/src/main/java/adapter/SongListInfoAdapter.java
  13. 60 0
      CloudyMiusic/app/src/main/java/bean/SongInfo.java
  14. 110 0
      CloudyMiusic/app/src/main/java/bean/SongListItem.java
  15. 51 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Adevertise.java
  16. 349 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/MainActivity.java
  17. 14 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Mine.java
  18. 66 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/PaletteTest.java
  19. 162 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Player.java
  20. 209 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/SongListInfo.java
  21. 46 0
      CloudyMiusic/app/src/main/java/com/example/cloudymiusic/WelcomePage.java
  22. 56 0
      CloudyMiusic/app/src/main/java/util/OkHttpHelper.java
  23. 86 0
      CloudyMiusic/app/src/main/java/util/PaletteHelper.java
  24. 30 0
      CloudyMiusic/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
  25. BIN
      CloudyMiusic/app/src/main/res/drawable/advertise.jpg
  26. 5 0
      CloudyMiusic/app/src/main/res/drawable/border.xml
  27. 7 0
      CloudyMiusic/app/src/main/res/drawable/circle.xml
  28. 5 0
      CloudyMiusic/app/src/main/res/drawable/circlr1.xml
  29. BIN
      CloudyMiusic/app/src/main/res/drawable/cloudy.png
  30. BIN
      CloudyMiusic/app/src/main/res/drawable/erji.png
  31. BIN
      CloudyMiusic/app/src/main/res/drawable/find1.png
  32. BIN
      CloudyMiusic/app/src/main/res/drawable/find_press.png
  33. 5 0
      CloudyMiusic/app/src/main/res/drawable/find_select.xml
  34. 6 0
      CloudyMiusic/app/src/main/res/drawable/gcc.xml
  35. 6 0
      CloudyMiusic/app/src/main/res/drawable/gcc1.xml
  36. BIN
      CloudyMiusic/app/src/main/res/drawable/gfplaylist.png
  37. 5 0
      CloudyMiusic/app/src/main/res/drawable/ic_baseline_arrow_back_24.xml
  38. 5 0
      CloudyMiusic/app/src/main/res/drawable/ic_baseline_arrow_back_ios_24.xml
  39. 5 0
      CloudyMiusic/app/src/main/res/drawable/ic_baseline_search_24.xml
  40. 170 0
      CloudyMiusic/app/src/main/res/drawable/ic_launcher_background.xml
  41. BIN
      CloudyMiusic/app/src/main/res/drawable/like.png
  42. BIN
      CloudyMiusic/app/src/main/res/drawable/list.png
  43. BIN
      CloudyMiusic/app/src/main/res/drawable/list2.png
  44. BIN
      CloudyMiusic/app/src/main/res/drawable/microphone.png
  45. BIN
      CloudyMiusic/app/src/main/res/drawable/next.png
  46. BIN
      CloudyMiusic/app/src/main/res/drawable/palette_test.jpg
  47. BIN
      CloudyMiusic/app/src/main/res/drawable/pinglun.png
  48. BIN
      CloudyMiusic/app/src/main/res/drawable/play.png
  49. BIN
      CloudyMiusic/app/src/main/res/drawable/point_list.png
  50. BIN
      CloudyMiusic/app/src/main/res/drawable/point_list1.png
  51. 6 0
      CloudyMiusic/app/src/main/res/drawable/radius.xml
  52. BIN
      CloudyMiusic/app/src/main/res/drawable/scan.png
  53. BIN
      CloudyMiusic/app/src/main/res/drawable/search.png
  54. BIN
      CloudyMiusic/app/src/main/res/drawable/shang.png
  55. BIN
      CloudyMiusic/app/src/main/res/drawable/share.png
  56. BIN
      CloudyMiusic/app/src/main/res/drawable/test.jpg
  57. 5 0
      CloudyMiusic/app/src/main/res/drawable/wangyiyun.xml
  58. BIN
      CloudyMiusic/app/src/main/res/drawable/wangyiyun_press.png
  59. BIN
      CloudyMiusic/app/src/main/res/drawable/welcome_page.jpg
  60. BIN
      CloudyMiusic/app/src/main/res/drawable/xunhuan.png
  61. 24 0
      CloudyMiusic/app/src/main/res/layout/activity_adevertise.xml
  62. 212 0
      CloudyMiusic/app/src/main/res/layout/activity_main.xml
  63. 45 0
      CloudyMiusic/app/src/main/res/layout/activity_mine.xml
  64. 17 0
      CloudyMiusic/app/src/main/res/layout/activity_palette_tese.xml
  65. 178 0
      CloudyMiusic/app/src/main/res/layout/activity_player.xml
  66. 108 0
      CloudyMiusic/app/src/main/res/layout/activity_song_list_info.xml
  67. 86 0
      CloudyMiusic/app/src/main/res/layout/songlist_info_item.xml
  68. 80 0
      CloudyMiusic/app/src/main/res/layout/songlist_item.xml
  69. 8 0
      CloudyMiusic/app/src/main/res/layout/welcome_activity.xml
  70. 5 0
      CloudyMiusic/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  71. 5 0
      CloudyMiusic/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  72. BIN
      CloudyMiusic/app/src/main/res/mipmap-hdpi/ic_launcher.webp
  73. BIN
      CloudyMiusic/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
  74. BIN
      CloudyMiusic/app/src/main/res/mipmap-mdpi/ic_launcher.webp
  75. BIN
      CloudyMiusic/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
  76. BIN
      CloudyMiusic/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
  77. BIN
      CloudyMiusic/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
  78. BIN
      CloudyMiusic/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
  79. BIN
      CloudyMiusic/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
  80. BIN
      CloudyMiusic/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
  81. BIN
      CloudyMiusic/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
  82. 16 0
      CloudyMiusic/app/src/main/res/values-night/themes.xml
  83. 12 0
      CloudyMiusic/app/src/main/res/values/colors.xml
  84. 3 0
      CloudyMiusic/app/src/main/res/values/strings.xml
  85. 16 0
      CloudyMiusic/app/src/main/res/values/themes.xml
  86. 13 0
      CloudyMiusic/app/src/main/res/xml/backup_rules.xml
  87. 19 0
      CloudyMiusic/app/src/main/res/xml/data_extraction_rules.xml
  88. 14 0
      CloudyMiusic/app/src/main/res/xml/network_security_config.xml
  89. 17 0
      CloudyMiusic/app/src/test/java/com/example/cloudymiusic/ExampleUnitTest.java
  90. 5 0
      CloudyMiusic/build.gradle
  91. 21 0
      CloudyMiusic/gradle.properties
  92. BIN
      CloudyMiusic/gradle/wrapper/gradle-wrapper.jar
  93. 6 0
      CloudyMiusic/gradle/wrapper/gradle-wrapper.properties
  94. 185 0
      CloudyMiusic/gradlew
  95. 89 0
      CloudyMiusic/gradlew.bat
  96. 16 0
      CloudyMiusic/settings.gradle

+ 15 - 0
CloudyMiusic/.gitignore

@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties

+ 3 - 0
CloudyMiusic/.idea/.gitignore

@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml

+ 6 - 0
CloudyMiusic/.idea/compiler.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <bytecodeTargetLevel target="11" />
+  </component>
+</project>

+ 20 - 0
CloudyMiusic/.idea/gradle.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="GradleMigrationSettings" migrationVersion="1" />
+  <component name="GradleSettings">
+    <option name="linkedExternalProjectsSettings">
+      <GradleProjectSettings>
+        <option name="testRunner" value="GRADLE" />
+        <option name="distributionType" value="DEFAULT_WRAPPED" />
+        <option name="externalProjectPath" value="$PROJECT_DIR$" />
+        <option name="gradleJvm" value="Embedded JDK" />
+        <option name="modules">
+          <set>
+            <option value="$PROJECT_DIR$" />
+            <option value="$PROJECT_DIR$/app" />
+          </set>
+        </option>
+      </GradleProjectSettings>
+    </option>
+  </component>
+</project>

+ 29 - 0
CloudyMiusic/.idea/misc.xml

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="DesignSurface">
+    <option name="filePathToZoomLevelMap">
+      <map>
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/border.xml" value="0.191" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/circle.xml" value="0.236" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/circlr1.xml" value="0.191" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/find.xml" value="0.1065" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/gcc.xml" value="0.1" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/gcc1.xml" value="0.1" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/ic_launcher_background.xml" value="0.236" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/radius.xml" value="0.236" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/drawable/wangyiyun.xml" value="0.236" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_adevertise.xml" value="0.1" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_main.xml" value="0.4466666666666667" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_mine.xml" value="0.3333333333333333" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_palette_tese.xml" value="0.1" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_player.xml" value="0.3333333333333333" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/activity_song_list_info.xml" value="0.3333333333333333" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/network_security_config.xml" value="0.1" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/songlist_info_item.xml" value="0.34615384615384615" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/songlist_item.xml" value="0.3333333333333333" />
+        <entry key="..\:/AndroidStudioProjects/CloudyMiusic/app/src/main/res/layout/welcome_activity.xml" value="0.3333333333333333" />
+      </map>
+    </option>
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK" />
+</project>

+ 1 - 0
CloudyMiusic/app/.gitignore

@@ -0,0 +1 @@
+/build

+ 46 - 0
CloudyMiusic/app/build.gradle

@@ -0,0 +1,46 @@
+plugins {
+    id 'com.android.application'
+}
+
+android {
+    namespace 'com.example.cloudymiusic'
+    compileSdk 32
+
+    defaultConfig {
+        applicationId "com.example.cloudymiusic"
+        minSdk 21
+        targetSdk 32
+        versionCode 1
+        versionName "1.0"
+
+        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+    }
+
+    buildTypes {
+        release {
+            minifyEnabled false
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+        }
+    }
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
+}
+
+dependencies {
+    implementation 'androidx.core:core:1.7.0'
+    implementation 'androidx.appcompat:appcompat:1.4.1'
+    implementation 'com.google.android.material:material:1.5.0'
+    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
+    testImplementation 'junit:junit:4.13.2'
+    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+    implementation("com.squareup.okhttp3:okhttp:4.9.0")
+    implementation "androidx.recyclerview:recyclerview:1.1.0"
+//    implementation 'com.github.bumptech.glide:glide:4.9.0'
+    implementation('com.github.bumptech.glide:glide:4.12.0') {
+        exclude group: 'com.bumptech.glide', module: 'support-compat:27.1.1'
+    }
+    implementation 'androidx.palette:palette:1.0.0'
+}

+ 21 - 0
CloudyMiusic/app/proguard-rules.pro

@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile

+ 26 - 0
CloudyMiusic/app/src/androidTest/java/com/example/cloudymiusic/ExampleInstrumentedTest.java

@@ -0,0 +1,26 @@
+package com.example.cloudymiusic;
+
+import android.content.Context;
+
+import androidx.test.platform.app.InstrumentationRegistry;
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+    @Test
+    public void useAppContext() {
+        // Context of the app under test.
+        Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+        assertEquals("com.example.cloudymiusic", appContext.getPackageName());
+    }
+}

+ 48 - 0
CloudyMiusic/app/src/main/AndroidManifest.xml

@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools">
+
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+
+    <application
+        android:allowBackup="true"
+        android:dataExtractionRules="@xml/data_extraction_rules"
+        android:fullBackupContent="@xml/backup_rules"
+        android:icon="@mipmap/ic_launcher"
+        android:label="@string/app_name"
+        android:roundIcon="@mipmap/ic_launcher_round"
+        android:supportsRtl="true"
+        android:theme="@style/Theme.CloudyMiusic"
+        android:usesCleartextTraffic="true"
+        tools:targetApi="31">
+        <activity
+            android:name=".PaletteTest"
+            android:exported="true" />
+        <activity
+            android:name=".Mine"
+            android:exported="false" />
+        <activity
+            android:name=".Player"
+            android:exported="false" />
+        <activity
+            android:name=".SongListInfo"
+            android:exported="true" />
+        <activity
+            android:name=".Adevertise"
+            android:exported="false" />
+        <activity
+            android:name=".MainActivity"
+            android:exported="true" />
+        <activity
+            android:name=".WelcomePage"
+            android:exported="true">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest>

+ 88 - 0
CloudyMiusic/app/src/main/java/adapter/MyAdapter.java

@@ -0,0 +1,88 @@
+package adapter;
+
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+
+import com.bumptech.glide.Glide;
+import com.example.cloudymiusic.R;
+import com.example.cloudymiusic.SongListInfo;
+
+import java.util.List;
+
+import bean.SongListItem;
+
+public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
+    private List<SongListItem> mLists;
+    private Context mContext;
+    private static MyAdapter adapter;
+
+    private MyAdapter(List<SongListItem> mLists, Context mContext) {
+        this.mLists = mLists;
+        this.mContext = mContext;
+    }
+
+    public static MyAdapter getInstance(List<SongListItem> mLists , Context mContext){
+            if (adapter ==null){
+                adapter = new MyAdapter(mLists , mContext);
+            }
+            return adapter;
+    }
+
+    @NonNull
+    @Override
+    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
+        View view = LayoutInflater.from(mContext).inflate(R.layout.songlist_item,parent,false);
+        ViewHolder viewHolder = new ViewHolder(view);
+        return viewHolder;
+    }
+
+    @Override
+    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
+            SongListItem songListItem  = mLists.get(position);
+//            holder.hot_people.setText((int) songListItem.getTrackNumberUpdateTime());
+            holder.songList_item_title.setText(songListItem.getName());
+            Glide.with(mContext).load(songListItem.getPicUrl()).into(holder.songList_item_pic);
+            holder.itemView.setOnClickListener(new View.OnClickListener() {
+                @Override
+                public void onClick(View view) {
+                    Bundle bundle  = new Bundle();
+                    Intent intent = new Intent(mContext, SongListInfo.class);
+                    bundle.putString("id",songListItem.getId());
+                    bundle.putString("title",songListItem.getName());
+                    bundle.putString("pic", songListItem.getPicUrl());
+                    intent.putExtras(bundle);
+                    mContext.startActivity(intent);
+                }
+            });
+    }
+
+    @Override
+    public int getItemCount() {
+        return mLists.size();
+    }
+
+    static class ViewHolder extends RecyclerView.ViewHolder{
+        private ImageView songList_item_pic;
+        private TextView songList_item_title;
+        private TextView hot_people;
+
+
+        public ViewHolder(@NonNull View itemView) {
+            super(itemView);
+            songList_item_pic = itemView.findViewById(R.id.songList_item_pic);
+            songList_item_title =  itemView.findViewById(R.id.songList_item_title);
+            hot_people = itemView.findViewById(R.id.hot_people);
+        }
+    }
+}

+ 105 - 0
CloudyMiusic/app/src/main/java/adapter/SongListInfoAdapter.java

@@ -0,0 +1,105 @@
+package adapter;
+
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.bumptech.glide.Glide;
+import com.example.cloudymiusic.Player;
+import com.example.cloudymiusic.R;
+
+import java.util.List;
+
+import bean.SongInfo;
+
+
+public class SongListInfoAdapter extends RecyclerView.Adapter<SongListInfoAdapter.InfoViewHolder> {
+    private List<SongInfo> mLists;
+    private Context mContext;
+    private static SongListInfoAdapter songListInfo;
+    private String songAuthor;
+
+    public SongListInfoAdapter(List<SongInfo> mLists, Context mContext) {
+        this.mLists = mLists;
+        this.mContext = mContext;
+    }
+
+//    public  static SongListInfoAdapter getInstance(List<SongInfo> mLists, Context mContext){
+//        if (songListInfo == null){
+//            songListInfo = new SongListInfoAdapter(mLists,mContext);
+//        }
+//        return songListInfo;
+//    }
+
+    @NonNull
+    @Override
+    public InfoViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
+        View view = LayoutInflater.from(mContext).inflate(R.layout.songlist_info_item,parent,false);
+        InfoViewHolder viewHolder = new InfoViewHolder(view);
+        return viewHolder;
+    }
+
+    @Override
+    public void onBindViewHolder(@NonNull InfoViewHolder holder, int position) {
+        SongInfo songInfo = mLists.get(position);
+        String[] info_author = songInfo.getSongAuthor();
+        if (songInfo.getSongAuthor().length == 1 ){
+            holder.info_songAuthor.setText(info_author[0]);
+        }else{
+            for (int i = 0 ; i < info_author.length ; i++){
+                holder.info_songAuthor
+                        .setText(i == info_author.length-1 ? info_author[i]:info_author[i] +"/");
+            }
+        }
+        holder.info_songName.setText(songInfo.getSongName());
+        Glide.with(mContext).load(songInfo.getPic()).into(holder.info_pic);
+
+        holder.itemView.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                Intent intent = new Intent(mContext, Player.class);
+                Bundle bundle = new Bundle();
+                bundle.putString("title",songInfo.getTitle());
+                bundle.putString("songName",songInfo.getSongName());
+                if (songInfo.getSongAuthor().length > 1 ){
+                    for (int i = 0 ; i < songInfo.getSongAuthor().length; i++){
+                        songAuthor  = i == songInfo.getSongAuthor().length - 1? songInfo.getSongAuthor()[i] : songInfo.getSongAuthor()[i] +"/" ;
+
+                    }
+                }else{
+                    songAuthor = songInfo.getSongAuthor()[0];
+                }
+                bundle.putString("songAuthor",songAuthor);
+                bundle.putString("pic",songInfo.getPic());
+                bundle.putString("id",songInfo.getSong_id());
+                intent.putExtras(bundle);
+                mContext.startActivity(intent);
+            }
+        });
+    }
+
+    @Override
+    public int getItemCount() {
+        return mLists.size();
+    }
+
+    static class InfoViewHolder extends RecyclerView.ViewHolder {
+        private TextView info_songName;
+        private TextView info_songAuthor;
+        private ImageView info_pic;
+        public InfoViewHolder(@NonNull View itemView) {
+            super(itemView);
+            info_songName =  itemView.findViewById(R.id.info_songName);
+            info_songAuthor = itemView.findViewById(R.id.info_songAuthor);
+            info_pic = itemView.findViewById(R.id.info_pic);
+        }
+    }
+}

+ 60 - 0
CloudyMiusic/app/src/main/java/bean/SongInfo.java

@@ -0,0 +1,60 @@
+package bean;
+
+public class SongInfo {
+    private String songName;
+    private String[] songAuthor;
+    private String pic;
+    private String song_id;
+    private String title;
+
+    public SongInfo() {
+    }
+
+    public SongInfo(String songName, String[] songAuthor,String pic,String song_id,String title){
+        this.songName = songName;
+        this.songAuthor = songAuthor;
+        this.pic = pic;
+        this.song_id = song_id;
+        this.title = title;
+    }
+
+    public String getSongName() {
+        return songName;
+    }
+
+    public void setSongName(String songName) {
+        this.songName = songName;
+    }
+
+    public String[] getSongAuthor() {
+        return songAuthor;
+    }
+
+    public void setSongAuthor(String[] songAuthor) {
+        this.songAuthor = songAuthor;
+    }
+
+    public String getPic() {
+        return pic;
+    }
+
+    public void setPic(String pic) {
+        this.pic = pic;
+    }
+
+    public String getSong_id() {
+        return song_id;
+    }
+
+    public void setSong_id(String song_id) {
+        this.song_id = song_id;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+}

+ 110 - 0
CloudyMiusic/app/src/main/java/bean/SongListItem.java

@@ -0,0 +1,110 @@
+package bean;
+
+public class SongListItem {
+    private String id;
+    private String name;
+    private String copyWrite;
+    private String picUrl;
+    private boolean canDislike;
+    private long trackNumberUpdateTime;
+    private int playCount;
+    private int trackCount;
+    private boolean highQuality;
+    private String alg;
+
+    public SongListItem() {
+    }
+
+    public SongListItem(String id, String name, String copyWrite, String picUrl, boolean canDislike, long trackNumberUpdateTime, int playCount, int trackCount, boolean highQuality, String alg) {
+        this.id = id;
+        this.name = name;
+        this.copyWrite = copyWrite;
+        this.picUrl = picUrl;
+        this.canDislike = canDislike;
+        this.trackNumberUpdateTime = trackNumberUpdateTime;
+        this.playCount = playCount;
+        this.trackCount = trackCount;
+        this.highQuality = highQuality;
+        this.alg = alg;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getCopyWrite() {
+        return copyWrite;
+    }
+
+    public void setCopyWrite(String copyWrite) {
+        this.copyWrite = copyWrite;
+    }
+
+    public String getPicUrl() {
+        return picUrl;
+    }
+
+    public void setPicUrl(String picUrl) {
+        this.picUrl = picUrl;
+    }
+
+    public boolean isCanDislike() {
+        return canDislike;
+    }
+
+    public void setCanDislike(boolean canDislike) {
+        this.canDislike = canDislike;
+    }
+
+    public long getTrackNumberUpdateTime() {
+        return trackNumberUpdateTime;
+    }
+
+    public void setTrackNumberUpdateTime(long trackNumberUpdateTime) {
+        this.trackNumberUpdateTime = trackNumberUpdateTime;
+    }
+
+    public int getPlayCount() {
+        return playCount;
+    }
+
+    public void setPlayCount(int playCount) {
+        this.playCount = playCount;
+    }
+
+    public int getTrackCount() {
+        return trackCount;
+    }
+
+    public void setTrackCount(int trackCount) {
+        this.trackCount = trackCount;
+    }
+
+    public boolean isHighQuality() {
+        return highQuality;
+    }
+
+    public void setHighQuality(boolean highQuality) {
+        this.highQuality = highQuality;
+    }
+
+    public String getAlg() {
+        return alg;
+    }
+
+    public void setAlg(String alg) {
+        this.alg = alg;
+    }
+}

+ 51 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Adevertise.java

@@ -0,0 +1,51 @@
+package com.example.cloudymiusic;
+
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.CountDownTimer;
+import android.view.View;
+import android.widget.TextView;
+
+public class Adevertise extends AppCompatActivity {
+    private TextView tv_second;
+    private CountDownTimer timer;
+    private long timeLeftInMillis = 5000;
+    private boolean isChecked = true;
+
+    @Override
+    protected void onCreate(@Nullable Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_adevertise);
+        tv_second = findViewById(R.id.tv_second);
+        startCountDown();
+
+        tv_second.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                startActivity(new Intent(Adevertise.this,MainActivity.class));
+                isChecked = false;
+            }
+        });
+    }
+
+    private void startCountDown() {
+        timer = new CountDownTimer(timeLeftInMillis, 1000) {
+            @Override
+            public void onTick(long l) {
+                timeLeftInMillis = l;
+                tv_second.setText((l / 1000) + "s");
+
+            }
+            @Override
+            public void onFinish() {
+                if (isChecked){
+                    startActivity(new Intent(Adevertise.this,MainActivity.class));
+                    finish();
+                }
+            }
+        }.start();
+    }
+}

+ 349 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/MainActivity.java

@@ -0,0 +1,349 @@
+package com.example.cloudymiusic;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.core.app.ActivityCompat;
+import androidx.core.content.ContextCompat;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+//import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
+
+import android.Manifest;
+import android.annotation.SuppressLint;
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.app.DownloadManager;
+import android.content.Context;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.content.pm.PackageManager;
+import android.graphics.Color;
+import android.net.Uri;
+import android.os.Bundle;
+import android.os.CountDownTimer;
+import android.os.Handler;
+import android.os.HandlerThread;
+import android.os.Message;
+import android.provider.Settings;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.json.JSONArray;
+import org.json.JSONObject;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import adapter.MyAdapter;
+import bean.SongListItem;
+import okhttp3.Call;
+import okhttp3.Response;
+import util.OkHttpHelper;
+
+public class MainActivity extends AppCompatActivity implements View.OnClickListener {
+    private static final int REQUEST_CODE = 100;
+    private String[] permissions;
+    private boolean isAllGrant;
+    //开启权限
+
+    private LinearLayout button_recommended;
+    private TextView button_text1;
+    private LinearLayout button_find;
+    private TextView button_text2;
+    private LinearLayout button_manyou;
+    private TextView button_text3;
+    private LinearLayout button_dongtai;
+    private TextView button_text4;
+    private LinearLayout button_mine;
+    private TextView button_text5;
+    private RecyclerView recommended_rv;
+
+
+    private List<SongListItem> mLists;
+    private MyAdapter adapter;
+    private HandlerThread handlerThread;
+    private Handler mHandler , uiHandler;
+
+//    private SwipeRefreshLayout mSwiperRefreshLayout;
+    //消息的类型,分别为初始状态、下拉刷新状态、上拉加载状态
+    private final int MSG_INIT = 0x11;
+    private final int MSG_REFRESH = 0x12;
+    private final int MSG_TYPE = 0x13;
+    private int page = 1;
+
+
+    @SuppressLint("HandlerLeak")
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_main);
+        View view  = LayoutInflater.from(this).inflate(R.layout.activity_main,null);
+        recommended_rv = findViewById(R.id.recommended_rv);
+        permissions = new String[]{
+                Manifest.permission.INTERNET,
+                Manifest.permission.ACCESS_NETWORK_STATE,
+
+        };
+
+        initUI();
+        initListener();
+        normal(view);
+
+        recommended_rv = findViewById(R.id.recommended_rv);
+        mLists = new ArrayList<>();
+        adapter = MyAdapter.getInstance(mLists,this);
+        LinearLayoutManager manager = new LinearLayoutManager(this);
+        manager.setOrientation(RecyclerView.HORIZONTAL);
+        recommended_rv.setLayoutManager(manager);
+        recommended_rv.setAdapter(adapter);
+
+
+        //消息的处理
+        mHandler = new Handler() {
+            @Override
+            public void handleMessage(@NonNull Message msg) {
+                super.handleMessage(msg);
+                switch (msg.what) {
+                    case 1:
+                        Log.e("handleMessage: ",msg.obj+"" );
+                        mLists.addAll((Collection<? extends SongListItem>) msg.obj);
+                        Log.e("handleMessage", mLists.size()+"");
+                        adapter.notifyDataSetChanged();
+                        break;
+                }
+            }
+        };
+
+        Log.e("handleMessage", mLists.size()+"q");
+    }
+
+    public void normal(View view){
+        isAllGrant = checkIsAllPermissionGranted(permissions,this);
+            if (isAllGrant){
+                //已有权限 -> 做事
+                Toast.makeText(this,"已有权限",Toast.LENGTH_SHORT).show();
+                doWork();
+            }else{
+                //没有权限 -> 请求权限
+                    ActivityCompat.requestPermissions(this,permissions,REQUEST_CODE);
+            }
+    }
+
+//    public void frame(View view){
+//        startActivity(new Intent(this);
+//    }
+//    private void initView(){
+////        mSwiperRefreshLayout  = findViewById(R.id.swiper_refresh_layout);
+//        mSwiperRefreshLayout.setColorSchemeColors(Color.RED);
+//        mSwiperRefreshLayout.setProgressBackgroundColorSchemeColor(Color.BLUE);
+//        mSwiperRefreshLayout.setDistanceToTriggerSync(300);
+//        mSwiperRefreshLayout.setSize(SwipeRefreshLayout.LARGE);
+//
+//
+//    }
+
+    private void doWork() {
+        //todo 有权限时,想做的事
+        Log.e("asd", "doWork: " );
+        OkHttpHelper  okHttpHelper = OkHttpHelper.getInstance();
+        okHttpHelper.getRequest("http://192.168.43.198:3000/personalized?limit=5", new OkHttpHelper.OkHttpInterface() {
+            @Override
+            public void failure(Call call, IOException e) {
+                Log.d("failure: ", e.getMessage());
+            }
+            @Override
+            public void success(Call call, Response response) {
+                try{
+                    String body = response.body().string();
+                    JSONObject data = new JSONObject(body);
+                    JSONArray results = data.optJSONArray("result");
+                    for (int i = 0;i < results.length(); i++){
+                        SongListItem songListItem = new SongListItem();
+                        JSONObject item = (JSONObject) results.get(i);
+                            songListItem.setId(item.optString("id"));
+                            songListItem.setName(item.optString("name"));
+                            songListItem.setPicUrl(item.optString("picUrl"));
+                            songListItem.setTrackNumberUpdateTime(item.optLong("trackNumberUpdateTime",200));
+                        Log.d("success: ",results.get(i).toString());
+                        mLists.add(songListItem);
+                    }
+                    Message msg = mHandler.obtainMessage();
+                    msg.what = 1;
+                    msg.obj = mLists;
+                    mHandler.sendMessage(msg);
+                    Log.d( "success: ",mLists.get(0).getName() + mLists.size());
+                }catch (Exception e){
+                    e.printStackTrace();
+                }
+            }
+        });
+    }
+    //permission 权限数组
+    //权限都已授权返回true,否则false
+    //检查所有权限是否授权
+    private boolean checkIsAllPermissionGranted(String[] permissions , Context context) {
+        //遍历检测权限
+        for (String permission : permissions) {
+            if (ContextCompat.checkSelfPermission(context,permission) != PackageManager.PERMISSION_GRANTED){
+                return false;
+            }
+        }
+        return  true;
+    }
+
+    //权限回调处理,如果用户此时还拒绝,则提示他去手机的设置->管理界面打开权限
+    @Override
+    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
+        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
+        if (requestCode == REQUEST_CODE){
+            isAllGrant = true;
+            for (int grant : grantResults) {
+                if (grant == PackageManager.PERMISSION_GRANTED){
+                    isAllGrant = false;
+                    break;
+                }
+            }
+        }if (isAllGrant){ //同意授权 -> 做事情
+            Toast.makeText(this,"授权成功",Toast.LENGTH_SHORT).show();
+            doWork();
+        }else{
+            //拒绝授权 -> 开弹窗询问是否跳设置 -> 权限管理界面
+            AlertDialog.Builder builder = new AlertDialog.Builder(this)
+                    .setMessage("需要您的网络权限,请到设置-权限管理中授权。")
+                    .setPositiveButton("确定", new DialogInterface.OnClickListener() {
+                        @Override
+                        public void onClick(DialogInterface dialogInterface, int i) {
+                            Intent intent = new Intent();
+                            intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
+                            intent.addCategory(Intent.CATEGORY_DEFAULT);
+                            intent.setData(Uri.parse("package:" + getPackageName()));
+                            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+                            intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
+                            intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
+                            startActivity(intent);
+                        }
+                    }).setCancelable(false)
+                    .setNegativeButton("取消", new DialogInterface.OnClickListener() {
+                        @Override
+                        public void onClick(DialogInterface dialogInterface, int i) {
+                            Toast.makeText(MainActivity.this,"您没有获得此权限,此功能无法正常使用",Toast.LENGTH_SHORT).show();
+                        }
+                    });
+            builder.create().show();
+        }
+    }
+
+    private void initUI(){
+        button_recommended = findViewById(R.id.button_recommended);
+        button_text1 =  findViewById(R.id.button_text1);
+
+        button_find = findViewById(R.id.button_find);
+        button_text2 = findViewById(R.id.button_text2);
+
+        button_manyou = findViewById(R.id.button_manyou);
+        button_text3 = findViewById(R.id.button_text3);
+
+        button_dongtai = findViewById(R.id.button_dongtai);
+        button_text4 = findViewById(R.id.button_text4);
+
+        button_mine = findViewById(R.id.button_mine);
+        button_text5 = findViewById(R.id.button_text5);
+
+        recommended_rv = findViewById(R.id.recommended_rv);
+
+        findViewById(R.id.button_img1).setSelected(true);
+        button_text1.setTextColor(0xFFFF0000);
+
+
+
+    }
+
+    private void initListener(){
+        button_recommended.setOnClickListener(this);
+        button_find.setOnClickListener(this);
+        button_manyou.setOnClickListener(this);
+        button_dongtai.setOnClickListener(this);
+        button_mine.setOnClickListener(this);
+    }
+
+    @Override
+    public void onClick(View view) {
+        switch (view.getId()) {
+            case R.id.button_recommended:
+                findViewById(R.id.button_img1).setSelected(true);
+                button_text1.setTextColor(0xFFFF0000);
+
+                findViewById(R.id.button_img2).setSelected(false);
+                button_text2.setTextColor(0xFF000000);
+                findViewById(R.id.button_img3).setSelected(false);
+                button_text3.setTextColor(0xFF000000);
+                findViewById(R.id.button_img4).setSelected(false);
+                button_text4.setTextColor(0xFF000000);
+                findViewById(R.id.button_img5).setSelected(false);
+                button_text5.setTextColor(0xFF000000);
+                break;
+            case R.id.button_find:
+                findViewById(R.id.button_img2).setSelected(true);
+                button_text2.setTextColor(0xFFFF0000);
+
+                findViewById(R.id.button_img1).setSelected(false);
+                button_text1.setTextColor(0xFF000000);
+                findViewById(R.id.button_img3).setSelected(false);
+                button_text3.setTextColor(0xFF000000);
+                findViewById(R.id.button_img4).setSelected(false);
+                button_text4.setTextColor(0xFF000000);
+                findViewById(R.id.button_img5).setSelected(false);
+                button_text5.setTextColor(0xFF000000);
+                break;
+            case R.id.button_manyou:
+                findViewById(R.id.button_img3).setSelected(true);
+                button_text3.setTextColor(0xFFFF0000);
+
+                findViewById(R.id.button_img2).setSelected(false);
+                button_text2.setTextColor(0xFF000000);
+                findViewById(R.id.button_img1).setSelected(false);
+                button_text1.setTextColor(0xFF000000);
+                findViewById(R.id.button_img4).setSelected(false);
+                button_text4.setTextColor(0xFF000000);
+                findViewById(R.id.button_img5).setSelected(false);
+                button_text5.setTextColor(0xFF000000);
+                break;
+            case R.id.button_dongtai:
+                findViewById(R.id.button_img4).setSelected(true);
+                button_text4.setTextColor(0xFFFF0000);
+
+                findViewById(R.id.button_img3).setSelected(false);
+                button_text3.setTextColor(0xFF000000);
+                findViewById(R.id.button_img2).setSelected(false);
+                button_text2.setTextColor(0xFF000000);
+                findViewById(R.id.button_img1).setSelected(false);
+                button_text1.setTextColor(0xFF000000);
+                findViewById(R.id.button_img5).setSelected(false);
+                button_text5.setTextColor(0xFF000000);
+                break;
+            case R.id.button_mine:
+                findViewById(R.id.button_img5).setSelected(true);
+                button_text5.setTextColor(0xFFFF0000);
+
+                findViewById(R.id.button_img1).setSelected(false);
+                button_text1.setTextColor(0xFF000000);
+                findViewById(R.id.button_img2).setSelected(false);
+                button_text2.setTextColor(0xFF000000);
+                findViewById(R.id.button_img3).setSelected(false);
+                button_text3.setTextColor(0xFF000000);
+                findViewById(R.id.button_img4).setSelected(false);
+                button_text4.setTextColor(0xFF000000);
+
+
+                break;
+        }
+    }
+}

+ 14 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Mine.java

@@ -0,0 +1,14 @@
+package com.example.cloudymiusic;
+
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.os.Bundle;
+
+public class Mine extends AppCompatActivity {
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_mine);
+    }
+}

+ 66 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/PaletteTest.java

@@ -0,0 +1,66 @@
+package com.example.cloudymiusic;
+
+import android.annotation.SuppressLint;
+import android.graphics.Bitmap;
+import android.graphics.BitmapFactory;
+import android.graphics.drawable.GradientDrawable;
+import android.os.Bundle;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.palette.graphics.Palette;
+
+import com.bumptech.glide.Glide;
+import com.bumptech.glide.load.model.GlideUrl;
+
+import util.PaletteHelper;
+
+public class PaletteTest extends AppCompatActivity {
+    private  int[] color1;
+    @Override
+    protected void onCreate(@Nullable Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_palette_tese);
+
+        ImageView test_img =  findViewById(R.id.test_img);
+//        String pirUrl = "https://p1.music.126.net/zh8e5iGLT72eXQXaiDpcJw==/109951166276177542.jpg";
+//        Glide.with(this).load(pirUrl).into(test_img);
+        test_img.setImageResource(R.drawable.palette_test);
+
+
+        LinearLayout linearLayout  = findViewById(R.id.buju);
+        Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.palette_test);
+        PaletteHelper.ColorAbsorption(linearLayout,bitmap);
+//        Palette.Builder builder =  Palette.from(BitmapFactory.decodeResource(getResources(),R.drawable.palette_test));
+//        builder.generate(new Palette.PaletteAsyncListener() {
+//            @Override
+//            public void onGenerated(@Nullable Palette palette) {
+//                Palette.Swatch swatch = palette.getVibrantSwatch();
+//                Palette.Swatch darkSwatch = palette.getDarkVibrantSwatch();
+//               if (swatch == null){
+//                   int color =palette.getDominantColor(R.color.black);
+//                   LinearLayout linearLayout  = findViewById(R.id.buju);
+//                   linearLayout.setBackgroundColor(color);
+//               }else{
+//                   color1 = new int[2];
+//                   color1[0] = swatch.getRgb(); //提取到颜色样本,从颜色样本中获得颜色
+//                   color1[1] = darkSwatch.getRgb();
+//                   LinearLayout linearLayout  = findViewById(R.id.buju);
+//                   GradientDrawable gradientDrawable =new GradientDrawable(
+//                           GradientDrawable.Orientation.TOP_BOTTOM,
+//                           color1);
+//
+//                   gradientDrawable.setBounds(0, 0, linearLayout.getWidth(), linearLayout.getHeight());
+//
+//                   // 将渐变背景应用到LinearLayout
+//                   linearLayout.setBackground(gradientDrawable);
+//               }
+//            }
+//        });
+
+
+
+    }
+}

+ 162 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/Player.java

@@ -0,0 +1,162 @@
+package com.example.cloudymiusic;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+
+import android.content.Intent;
+import android.graphics.Bitmap;
+import android.graphics.drawable.Drawable;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.Message;
+import android.util.Log;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import com.bumptech.glide.Glide;
+import com.bumptech.glide.request.target.CustomTarget;
+import com.bumptech.glide.request.transition.Transition;
+
+import org.json.JSONArray;
+import org.json.JSONObject;
+
+import java.io.IOException;
+
+import okhttp3.Call;
+import okhttp3.Response;
+import util.OkHttpHelper;
+import util.PaletteHelper;
+
+public class Player extends AppCompatActivity implements View.OnClickListener {
+    private ImageView player_back;
+    private TextView player_title;
+    private ImageView player_pic;
+    private TextView player_songName;
+    private TextView player_songAuthor;
+    private OkHttpHelper okHttpHelper;
+    private TextView player_songTime;
+    private String songTime;
+    private Handler mHandler;
+    private LinearLayout player_backGround;
+    private Bitmap bitmap;
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_player);
+
+        player_back = findViewById(R.id.player_back);
+        player_title = findViewById(R.id.player_title);
+        player_pic = findViewById(R.id.player_pic);
+        player_songName = findViewById(R.id.player_songName);
+        player_songAuthor = findViewById(R.id.player_songAuthor);
+        player_songTime = findViewById(R.id.player_songTime);
+        songTime = "";
+        player_backGround = findViewById(R.id.player_backGround);
+
+        Intent intent = getIntent();
+        String title = intent.getStringExtra("title");
+        player_title.setText(title);
+
+        String pic = intent.getStringExtra("pic");
+        changUrlToBitmapAndShowUi(pic);
+
+        String songName = intent.getStringExtra("songName");
+        player_songName.setText(songName);
+
+        String songAuthor = intent.getStringExtra("songAuthor");
+        player_songAuthor.setText(songAuthor);
+
+        String id = intent.getStringExtra("id");
+        Log.d( "success ",id);
+
+        player_back.setOnClickListener(this);
+
+        mHandler = new Handler(){
+            @Override
+            public void handleMessage(@NonNull Message msg) {
+                Log.e("handleMessage: ","成功2" );
+                super.handleMessage(msg);
+                switch (msg.what){
+                    case 1:
+                       String time = (String) msg.obj;
+                        Log.e("handleMessage: ",time );
+                       player_songTime.setText(getMinute(time));
+                        break;
+                    case 2:
+                        bitmap = (Bitmap) msg.obj;
+                        PaletteHelper.ColorAbsorption(player_backGround,bitmap);
+
+                }
+            }
+        };
+
+        okHttpHelper = OkHttpHelper.getInstance();
+        okHttpHelper.getRequest("http://192.168.43.198:3000/song/detail?ids=" + id, new OkHttpHelper.OkHttpInterface() {
+            @Override
+            public void failure(Call call, IOException e) {
+
+            }
+
+            @Override
+            public void success(Call call, Response response) {
+                try {
+                    String body = response.body().string();
+                    JSONObject data = new JSONObject(body);
+                    JSONArray songs = data.getJSONArray("songs");
+                    data = (JSONObject) songs.get(0);
+                    songTime = data.optString("dt");
+                    Log.d("success: ",songTime);
+                    Message msg = mHandler.obtainMessage();
+                    msg.what = 1;
+                    msg.obj = songTime;
+                    mHandler.sendMessage(msg);
+                }catch (Exception e){
+                    e.printStackTrace();
+                }
+            }
+        });
+    }
+
+    @Override
+    public void onClick(View view) {
+        switch (view.getId()){
+            case R.id.player_back:
+                finish();
+                break;
+        }
+    }
+
+    public String getMinute(String time){
+        int totalSeconds = Integer.parseInt(time)/ 1000;
+        int minutes = totalSeconds / 60;
+        int seconds = totalSeconds % 60;
+
+
+       return songTime =seconds / 10 < 1?  minutes + ":0" + seconds:minutes + ":" + seconds;
+    }
+
+    private void changUrlToBitmapAndShowUi(String pic_url){
+        Glide.with(this).asBitmap().load(pic_url)
+                .into(new CustomTarget<Bitmap>() {
+                    @Override
+                    public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) {
+                        bitmap = resource;
+                        player_pic.setImageBitmap(bitmap);
+                        Message msg = mHandler.obtainMessage();
+                        msg.what = 2;
+                        msg.obj = bitmap;
+                        mHandler.sendMessage(msg);
+
+                        Log.d("handleMessage: ",bitmap == null? "true" :"false");
+                    }
+                    @Override
+                    public void onLoadCleared(@Nullable Drawable placeholder) {
+
+                    }
+                });
+    }
+}

+ 209 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/SongListInfo.java

@@ -0,0 +1,209 @@
+package com.example.cloudymiusic;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import android.content.Intent;
+import android.graphics.Bitmap;
+import android.graphics.drawable.Drawable;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.Message;
+import android.util.Log;
+import android.view.View;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+
+import com.bumptech.glide.Glide;
+import com.bumptech.glide.RequestBuilder;
+import com.bumptech.glide.request.target.CustomTarget;
+import com.bumptech.glide.request.transition.Transition;
+
+import org.json.JSONArray;
+import org.json.JSONObject;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+
+import adapter.SongListInfoAdapter;
+import bean.SongInfo;
+import okhttp3.Call;
+import okhttp3.Response;
+import util.OkHttpHelper;
+import util.PaletteHelper;
+
+//"http://192.168.43.198:3000/playlist/track/all?id="+id+"&limit=10&offset=1"
+
+public class SongListInfo extends AppCompatActivity implements View.OnClickListener {
+    private ImageView info_back;
+    private ImageView info_pic;
+    private TextView info_title;
+    private RelativeLayout songList_item_backGround;
+    private LinearLayout songList_item_nav;
+
+    private Handler mHandler;
+    private List<SongInfo> mLists;
+    private SongListInfoAdapter adapter;
+    private RecyclerView info_rv;
+    private String id;
+    private String title;
+
+    private Bitmap bitmap;
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.activity_song_list_info);
+        initUi();
+        initListener();
+
+        mLists = new ArrayList<>();
+        adapter = new SongListInfoAdapter(mLists,this);
+        LinearLayoutManager manager = new LinearLayoutManager(this);
+        manager.setOrientation(RecyclerView.VERTICAL);
+        info_rv.setNestedScrollingEnabled(false);
+        info_rv.setLayoutManager(manager);
+        info_rv.setAdapter(adapter);
+
+        mHandler = new Handler() {
+            @Override
+            public void handleMessage(@NonNull Message msg) {
+                super.handleMessage(msg);
+                switch (msg.what) {
+                    case 1:
+                        mLists.addAll((Collection<? extends SongInfo>) msg.obj);
+                        adapter.notifyDataSetChanged();
+                        break;
+                    case 2:
+                        Log.d("handleMessage: ",bitmap == null? "true" :"false");
+                        bitmap = (Bitmap) msg.obj;
+                        PaletteHelper.ColorAbsorption(songList_item_nav,songList_item_backGround,bitmap);
+                        break;
+                }
+            }
+        };
+
+        OkHttpHelper  okHttpHelper = OkHttpHelper.getInstance();
+        okHttpHelper.getRequest("http://192.168.43.198:3000/playlist/track/all?id="+id+"&limit=10&offset=1", new OkHttpHelper.OkHttpInterface() {
+            @Override
+            public void failure(Call call, IOException e) {
+                Log.d("failure: ", e.getMessage());
+                System.out.println("失败");
+            }
+            @Override
+            public void success(Call call, Response response) {
+                try{
+                    String body = response.body().string();
+                    JSONObject data = new JSONObject(body);
+                    JSONArray songs = data.getJSONArray("songs");
+                    for (int i = 0 ; i < songs.length() ; i++){
+                        SongInfo songInfo  = new SongInfo();
+                        JSONObject item = (JSONObject) songs.get(i);
+                        JSONArray authorArray =  item.optJSONArray("ar");
+
+                        if (authorArray.length() == 1){
+                            JSONObject authorItem = (JSONObject)authorArray.get(0);
+                            String[] author = new String[1];
+                            author[0] = authorItem.optString("name");
+                            songInfo.setSongAuthor(author);
+                            Log.e("success: ",author[0]);
+                            System.out.println(author[0]);
+                        }else {
+                            for (int j = 0; j < authorArray.length(); j++) {
+                                JSONObject authorItem = (JSONObject) authorArray.get(j);
+                                String[] author = new String[authorArray.length()];
+                                author[j] = authorItem.optString("name");
+                                songInfo.setSongAuthor(author);
+                                Log.e("success: ", author[j]);
+                                System.out.println(author[j]);
+                            }
+                        }
+                        songInfo.setSongName(item.optString("name"));
+                        songInfo.setSong_id(item.optString("id"));
+                        //获取图片地址
+                        JSONObject pic = item.optJSONObject("al");
+                        String url = pic.optString("picUrl");
+                        songInfo.setPic(url);
+
+                        songInfo.setTitle(title);
+                        mLists.add(songInfo);
+                    }
+
+                    Message msg = mHandler.obtainMessage();
+                    msg.what = 1;
+                    msg.obj = mLists;
+                    mHandler.sendMessage(msg);
+                    System.out.println("请求成功");
+                    Log.d( "success: ",response.body().toString());
+                }catch (Exception e){
+                    e.printStackTrace();
+                }
+            }
+        });
+    }
+
+    @Override
+    public void onClick(View view) {
+        switch (view.getId()){
+            case R.id.info_back:
+                finish();
+        }
+    }
+
+    private void changUrlToBitmapAndShowUi(String pic_url){
+        Glide.with(this).asBitmap().load(pic_url)
+                .into(new CustomTarget<Bitmap>() {
+                    @Override
+                    public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) {
+                        bitmap = resource;
+                        info_pic.setImageBitmap(bitmap);
+                        Message msg = mHandler.obtainMessage();
+                        msg.what = 2;
+                        msg.obj = bitmap;
+                        mHandler.sendMessage(msg);
+
+                        Log.d("handleMessage: ",bitmap == null? "true" :"false");
+                    }
+
+                    @Override
+                    public void onLoadCleared(@Nullable Drawable placeholder) {
+
+                    }
+                });
+    }
+
+    private void initUi(){
+
+
+        info_back = findViewById(R.id.info_back);
+        info_pic = findViewById(R.id.info_pic);
+        info_title = findViewById(R.id.info_title);
+        songList_item_backGround = findViewById(R.id.songList_item_backGround);
+        songList_item_nav = findViewById(R.id.songList_item_nav);
+
+        Intent intent = getIntent();
+        title =  intent.getStringExtra("title");
+        info_title.setText(title);
+
+        String pic = intent.getStringExtra("pic");
+//        Glide.with(this).load(pic).into(info_pic);
+        changUrlToBitmapAndShowUi(pic);
+
+        id = intent.getStringExtra("id");
+        info_rv = findViewById(R.id.info_rv);
+    }
+
+    private void initListener(){
+        info_back.setOnClickListener(this);
+
+    }
+
+}

+ 46 - 0
CloudyMiusic/app/src/main/java/com/example/cloudymiusic/WelcomePage.java

@@ -0,0 +1,46 @@
+package com.example.cloudymiusic;
+
+import android.Manifest;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.CountDownTimer;
+
+
+import androidx.annotation.Nullable;
+import androidx.appcompat.app.AppCompatActivity;
+
+public class WelcomePage extends AppCompatActivity {
+    private CountDownTimer timer;
+    private long timeLeftInMillis = 2000;
+
+
+    @Override
+    protected void onCreate(@Nullable Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.welcome_activity);
+        startCountDown();
+    }
+
+    private void startCountDown() {
+        timer = new CountDownTimer(timeLeftInMillis, 1000) {
+            @Override
+            public void onTick(long l) {
+                timeLeftInMillis = l;
+
+            }
+            @Override
+            public void onFinish() {
+                    startActivity(new Intent(WelcomePage.this,Adevertise.class));
+                    finish();
+            }
+        }.start();
+    }
+
+    @Override
+    protected void onDestroy() {
+        super.onDestroy();
+        if (timer != null){
+            timer.cancel();
+        }
+    }
+}

+ 56 - 0
CloudyMiusic/app/src/main/java/util/OkHttpHelper.java

@@ -0,0 +1,56 @@
+package util;
+
+import androidx.annotation.NonNull;
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.concurrent.TimeUnit;
+
+import okhttp3.Call;
+import okhttp3.Callback;
+import okhttp3.OkHttpClient;
+import okhttp3.Request;
+import okhttp3.Response;
+
+public class OkHttpHelper {
+    private static OkHttpClient client;
+    private static  OkHttpHelper instance;
+
+    private OkHttpHelper() {
+        OkHttpClient.Builder builder = new OkHttpClient.Builder();
+        builder.connectTimeout(20, TimeUnit.SECONDS)
+                .readTimeout(60,TimeUnit.SECONDS)
+                .writeTimeout(60,TimeUnit.SECONDS);
+        client = builder.build();
+    }
+
+    public static OkHttpHelper getInstance(){
+        if (instance == null){
+            synchronized (OkHttpHelper.class){
+                    instance = new OkHttpHelper();
+            }
+        }
+        return instance;
+    }
+
+    public void getRequest(String url , OkHttpInterface okHttpInterface){
+        Request request = new Request.Builder().url(url).build();
+        client.newCall(request).enqueue(new Callback() {
+            @Override
+            public void onFailure(@NonNull Call call, @NonNull IOException e) {
+                okHttpInterface.failure(call,e);
+            }
+
+            @Override
+            public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {
+                okHttpInterface.success(call, response);
+            }
+        });
+
+    }
+
+    public interface OkHttpInterface{
+        void failure(Call call, IOException e);
+        void success(Call call, Response response);
+    }
+}

+ 86 - 0
CloudyMiusic/app/src/main/java/util/PaletteHelper.java

@@ -0,0 +1,86 @@
+package util;
+
+import android.annotation.SuppressLint;
+import android.graphics.Bitmap;
+import android.graphics.BitmapFactory;
+import android.graphics.drawable.Drawable;
+import android.graphics.drawable.GradientDrawable;
+import android.widget.LinearLayout;
+import android.widget.RelativeLayout;
+
+import androidx.annotation.Nullable;
+import androidx.palette.graphics.Palette;
+
+import com.example.cloudymiusic.R;
+
+public class PaletteHelper {
+    private PaletteHelper() {
+    }
+
+    /**
+     用充满活力的色调和充满活力的暗色调来做渐变背景
+     */
+    public static void ColorAbsorption(LinearLayout linearLayout,Bitmap bitmap){
+        Palette.Builder builder =  Palette.from(bitmap);
+        builder.generate(new Palette.PaletteAsyncListener() {
+            @Override
+            public void onGenerated(@Nullable Palette palette) {
+                Palette.Swatch swatch = palette.getVibrantSwatch();
+                Palette.Swatch darkSwatch = palette.getDarkVibrantSwatch();
+                if (swatch == null){
+                    @SuppressLint("ResourceAsColor") int color =palette.getDominantColor(R.color.black);
+                    linearLayout.setBackgroundColor(color);
+                }else{
+                    int[] color1 = new int[2];
+                    color1[0] = swatch.getRgb(); //提取到颜色样本,从颜色样本中获得颜色
+                    color1[1] = darkSwatch.getRgb();
+                    GradientDrawable gradientDrawable =new GradientDrawable(
+                            GradientDrawable.Orientation.TOP_BOTTOM,
+                            color1);
+                    gradientDrawable.setBounds(0, 0, linearLayout.getWidth(), linearLayout.getHeight());
+                    // 将渐变背景应用到LinearLayout
+                    linearLayout.setBackground(gradientDrawable);
+                }
+            }
+        });
+    }
+
+    public static void ColorAbsorption(LinearLayout nav,RelativeLayout relativeLayout, Bitmap bitmap){
+        if (bitmap ==null){
+            int[] color1 = new int[2];
+            color1[0] = R.color.black; //提取到颜色样本,从颜色样本中获得颜色
+            color1[1] = R.color.white;
+            GradientDrawable gradientDrawable =new GradientDrawable(
+                    GradientDrawable.Orientation.TOP_BOTTOM,
+                    color1);
+            gradientDrawable.setBounds(0, 0, relativeLayout.getWidth(), relativeLayout.getHeight());
+            // 将渐变背景应用到LinearLayout
+            relativeLayout.setBackground(gradientDrawable);
+        }else{
+            Palette.Builder builder =  Palette.from(bitmap);
+            builder.generate(new Palette.PaletteAsyncListener() {
+                @Override
+                public void onGenerated(@Nullable Palette palette) {
+                    Palette.Swatch swatch = palette.getVibrantSwatch();
+                    Palette.Swatch darkSwatch = palette.getDarkVibrantSwatch();
+                    if (swatch == null){
+                        @SuppressLint("ResourceAsColor") int color =palette.getDominantColor(R.color.black);
+                        relativeLayout.setBackgroundColor(color);
+                    }else{
+                        int[] color1 = new int[2];
+                        color1[1] = swatch.getRgb(); //提取到颜色样本,从颜色样本中获得颜色
+                        color1[0] = darkSwatch.getRgb();
+                        GradientDrawable gradientDrawable =new GradientDrawable(
+                                GradientDrawable.Orientation.TOP_BOTTOM,
+                                color1);
+                        gradientDrawable.setBounds(0, 0, relativeLayout.getWidth(), relativeLayout.getHeight());
+                        // 将渐变背景应用到LinearLayout
+                        relativeLayout.setBackground(gradientDrawable);
+                        nav.setBackgroundColor(color1[0]);
+                    }
+                }
+            });
+        }
+
+    }
+}

+ 30 - 0
CloudyMiusic/app/src/main/res/drawable-v24/ic_launcher_foreground.xml

@@ -0,0 +1,30 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:aapt="http://schemas.android.com/aapt"
+    android:width="108dp"
+    android:height="108dp"
+    android:viewportWidth="108"
+    android:viewportHeight="108">
+    <path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
+        <aapt:attr name="android:fillColor">
+            <gradient
+                android:endX="85.84757"
+                android:endY="92.4963"
+                android:startX="42.9492"
+                android:startY="49.59793"
+                android:type="linear">
+                <item
+                    android:color="#44000000"
+                    android:offset="0.0" />
+                <item
+                    android:color="#00000000"
+                    android:offset="1.0" />
+            </gradient>
+        </aapt:attr>
+    </path>
+    <path
+        android:fillColor="#FFFFFF"
+        android:fillType="nonZero"
+        android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
+        android:strokeWidth="1"
+        android:strokeColor="#00000000" />
+</vector>

BIN
CloudyMiusic/app/src/main/res/drawable/advertise.jpg


+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/border.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+<corners android:radius="5sp"/>
+    <stroke android:color="#E4C98C" android:width="1dp"/>
+</shape>

+ 7 - 0
CloudyMiusic/app/src/main/res/drawable/circle.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <corners android:radius="1000dp"/>
+    <solid android:color="#80cccccc"/>
+
+
+</shape>

+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/circlr1.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <corners android:radius="1000dp"/>
+    <solid android:color="#000000"/>
+</shape>

BIN
CloudyMiusic/app/src/main/res/drawable/cloudy.png


BIN
CloudyMiusic/app/src/main/res/drawable/erji.png


BIN
CloudyMiusic/app/src/main/res/drawable/find1.png


BIN
CloudyMiusic/app/src/main/res/drawable/find_press.png


+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/find_select.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android">
+<item android:state_selected="false" android:drawable="@drawable/find1"/>
+    <item android:state_selected="true" android:drawable="@drawable/find_press"/>
+</selector>

+ 6 - 0
CloudyMiusic/app/src/main/res/drawable/gcc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <gradient android:startColor="#4D9264"
+        android:endColor="#CCFFCC"
+        android:angle="270"/>
+</shape>

+ 6 - 0
CloudyMiusic/app/src/main/res/drawable/gcc1.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <gradient android:startColor="#453939"
+        android:endColor="#1B1716"
+        android:angle="270"/>
+</shape>

BIN
CloudyMiusic/app/src/main/res/drawable/gfplaylist.png


+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/ic_baseline_arrow_back_24.xml

@@ -0,0 +1,5 @@
+<vector android:autoMirrored="true" android:height="24dp"
+    android:tint="#FFFFFF" android:viewportHeight="24"
+    android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="@android:color/white" android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
+</vector>

+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/ic_baseline_arrow_back_ios_24.xml

@@ -0,0 +1,5 @@
+<vector android:autoMirrored="true" android:height="24dp"
+    android:tint="#C0C0C0" android:viewportHeight="24"
+    android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="@android:color/white" android:pathData="M11.67,3.87L9.9,2.1 0,12l9.9,9.9 1.77,-1.77L3.54,12z"/>
+</vector>

+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/ic_baseline_search_24.xml

@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#FFFFFF"
+    android:viewportHeight="24" android:viewportWidth="24"
+    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="@android:color/white" android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/>
+</vector>

+ 170 - 0
CloudyMiusic/app/src/main/res/drawable/ic_launcher_background.xml

@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    android:width="108dp"
+    android:height="108dp"
+    android:viewportWidth="108"
+    android:viewportHeight="108">
+    <path
+        android:fillColor="#3DDC84"
+        android:pathData="M0,0h108v108h-108z" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M9,0L9,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,0L19,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M29,0L29,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M39,0L39,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M49,0L49,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M59,0L59,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M69,0L69,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M79,0L79,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M89,0L89,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M99,0L99,108"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,9L108,9"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,19L108,19"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,29L108,29"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,39L108,39"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,49L108,49"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,59L108,59"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,69L108,69"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,79L108,79"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,89L108,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M0,99L108,99"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,29L89,29"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,39L89,39"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,49L89,49"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,59L89,59"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,69L89,69"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M19,79L89,79"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M29,19L29,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M39,19L39,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M49,19L49,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M59,19L59,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M69,19L69,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+    <path
+        android:fillColor="#00000000"
+        android:pathData="M79,19L79,89"
+        android:strokeWidth="0.8"
+        android:strokeColor="#33FFFFFF" />
+</vector>

BIN
CloudyMiusic/app/src/main/res/drawable/like.png


BIN
CloudyMiusic/app/src/main/res/drawable/list.png


BIN
CloudyMiusic/app/src/main/res/drawable/list2.png


BIN
CloudyMiusic/app/src/main/res/drawable/microphone.png


BIN
CloudyMiusic/app/src/main/res/drawable/next.png


BIN
CloudyMiusic/app/src/main/res/drawable/palette_test.jpg


BIN
CloudyMiusic/app/src/main/res/drawable/pinglun.png


BIN
CloudyMiusic/app/src/main/res/drawable/play.png


BIN
CloudyMiusic/app/src/main/res/drawable/point_list.png


BIN
CloudyMiusic/app/src/main/res/drawable/point_list1.png


+ 6 - 0
CloudyMiusic/app/src/main/res/drawable/radius.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+    <corners android:radius="10dp"></corners>
+    <solid android:color="#11000000" />
+
+</shape>

BIN
CloudyMiusic/app/src/main/res/drawable/scan.png


BIN
CloudyMiusic/app/src/main/res/drawable/search.png


BIN
CloudyMiusic/app/src/main/res/drawable/shang.png


BIN
CloudyMiusic/app/src/main/res/drawable/share.png


BIN
CloudyMiusic/app/src/main/res/drawable/test.jpg


+ 5 - 0
CloudyMiusic/app/src/main/res/drawable/wangyiyun.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+<item android:state_selected="true" android:drawable="@drawable/wangyiyun_press"/>
+    <item android:state_selected="false" android:drawable="@drawable/cloudy"/>
+</selector>

BIN
CloudyMiusic/app/src/main/res/drawable/wangyiyun_press.png


BIN
CloudyMiusic/app/src/main/res/drawable/welcome_page.jpg


BIN
CloudyMiusic/app/src/main/res/drawable/xunhuan.png


+ 24 - 0
CloudyMiusic/app/src/main/res/layout/activity_adevertise.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@drawable/advertise">
+    <androidx.cardview.widget.CardView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:backgroundTint="#80000000"
+        app:cardCornerRadius="30dp"
+        android:layout_alignParentRight="true"
+        android:layout_margin="16sp">
+
+        <TextView
+            android:id="@+id/tv_second"
+            android:layout_width="80dp"
+            android:layout_height="50dp"
+            android:text="3s"
+            android:gravity="center"
+            android:layout_gravity="right"
+            android:textSize="16sp"/>
+    </androidx.cardview.widget.CardView>
+</RelativeLayout>

+ 212 - 0
CloudyMiusic/app/src/main/res/layout/activity_main.xml

@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:background="@color/white"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    tools:context=".MainActivity"
+    android:orientation="vertical">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="60sp"
+        android:orientation="horizontal">
+
+        <ImageView
+            android:layout_width="30sp"
+            android:layout_height="30sp"
+            android:layout_margin="10sp"
+            android:background="@drawable/list"
+            android:layout_gravity="center"/>
+        <androidx.cardview.widget.CardView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="40sp"
+            app:cardCornerRadius="20sp"
+            android:layout_gravity="center"
+            app:cardBackgroundColor="#ececf4"
+            >
+            <ImageView
+                android:layout_width="30sp"
+                android:layout_height="30sp"
+                android:background="@drawable/search"
+                android:layout_margin="5sp"/>
+            <EditText
+                android:layout_width="218dp"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center|left"
+                android:layout_marginLeft="45sp"
+                android:background="@null"
+                android:hint="柳叶笺"
+                android:textColorHint="#898a8f" />
+            <ImageView
+                android:layout_width="30sp"
+                android:layout_height="30sp"
+                android:background="@drawable/scan"
+                android:layout_gravity="right"
+                android:layout_margin="5sp"/>
+        </androidx.cardview.widget.CardView>
+        <ImageView
+            android:layout_width="30sp"
+            android:layout_height="30sp"
+            android:layout_margin="10sp"
+            android:background="@drawable/microphone"
+            android:layout_gravity="center"/>
+    </LinearLayout>
+
+    <LinearLayout
+        android:id="@+id/swiper_refresh_layout"
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        android:orientation="vertical">
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_margin="10dp"
+            android:text="推荐歌单"
+            android:textColor="@color/black"
+            android:textSize="20sp" />
+
+        <androidx.recyclerview.widget.RecyclerView
+            android:id="@+id/recommended_rv"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:orientation="horizontal" />
+    </LinearLayout>
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="60sp"
+        android:layout_gravity="bottom">
+
+        <LinearLayout
+            android:id="@+id/button_recommended"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:orientation="vertical"
+            android:layout_gravity="center">
+
+            <ImageView
+                android:id="@+id/button_img1"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:layout_gravity="center"
+                android:layout_marginBottom="5dp"
+                android:background="@drawable/wangyiyun"
+                />
+
+            <TextView
+                android:id="@+id/button_text1"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="推荐"
+                android:gravity="center"
+                android:textColor="@color/black" />
+        </LinearLayout>
+
+        <LinearLayout
+            android:id="@+id/button_find"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:orientation="vertical"
+            android:layout_gravity="center">
+            <ImageView
+                android:id="@+id/button_img2"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:background="@drawable/find_select"
+                android:layout_gravity="center"
+                android:layout_marginBottom="5dp"
+                />
+            <TextView
+                android:id="@+id/button_text2"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="发现"
+                android:gravity="center"
+                android:textColor="@color/black"
+                />
+        </LinearLayout>
+        <LinearLayout
+            android:id="@+id/button_manyou"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:orientation="vertical"
+            android:layout_gravity="center">
+            <ImageView
+                android:id="@+id/button_img3"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:background="@drawable/find_select"
+                android:layout_gravity="center"
+                android:layout_marginBottom="5dp"
+                />
+            <TextView
+                android:id="@+id/button_text3"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="漫游"
+                android:gravity="center"
+                android:textColor="@color/black"
+                />
+        </LinearLayout>
+        <LinearLayout
+            android:id="@+id/button_dongtai"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:orientation="vertical"
+            android:layout_gravity="center">
+            <ImageView
+                android:id="@+id/button_img4"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:background="@drawable/find_select"
+                android:layout_gravity="center"
+                android:layout_marginBottom="5dp"
+                />
+            <TextView
+                android:id="@+id/button_text4"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="动态"
+                android:gravity="center"
+                android:textColor="@color/black"
+                />
+        </LinearLayout>
+        <LinearLayout
+            android:id="@+id/button_mine"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:orientation="vertical"
+            android:layout_gravity="center">
+            <ImageView
+                android:id="@+id/button_img5"
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:background="@drawable/find_select"
+                android:layout_gravity="center"
+                android:layout_marginBottom="5dp"
+                />
+            <TextView
+                android:id="@+id/button_text5"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="我的"
+                android:gravity="center"
+                android:textColor="@color/black"
+                />
+        </LinearLayout>
+
+
+
+    </LinearLayout>
+
+
+</LinearLayout>

+ 45 - 0
CloudyMiusic/app/src/main/res/layout/activity_mine.xml

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@color/white"
+    tools:context=".Mine">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="400dp"
+        android:padding="10dp"
+        android:background="@drawable/gcc1">
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="50dp">
+            <ImageView
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:src="@drawable/list2"
+                android:layout_gravity="center"
+                android:layout_marginRight="50dp"/>
+            <TextView
+                android:layout_width="0dp"
+                android:layout_weight="1"
+                android:layout_height="match_parent"
+                android:text="+添加状态"
+                android:textColor="#80cccccc"
+                android:gravity="center"/>
+            <ImageView
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:src="@drawable/search"
+                android:layout_gravity="center"
+                android:layout_marginRight="20dp"/>
+            <ImageView
+                android:layout_width="30dp"
+                android:layout_height="30dp"
+                android:src="@drawable/point_list1"
+                android:layout_gravity="center"/>
+
+        </LinearLayout>
+    </LinearLayout>
+</LinearLayout>

+ 17 - 0
CloudyMiusic/app/src/main/res/layout/activity_palette_tese.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@color/white"
+    android:id="@+id/buju"
+    tools:context=".PaletteTest">
+
+    <ImageView
+        android:id="@+id/test_img"
+        android:layout_width="410dp"
+        android:layout_height="410dp"
+        android:layout_gravity="center"/>
+
+</LinearLayout>

+ 178 - 0
CloudyMiusic/app/src/main/res/layout/activity_player.xml

@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@drawable/gcc1"
+    android:id="@+id/player_backGround"
+    tools:context=".Player"
+    android:padding="20dp"
+    android:orientation="vertical">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal">
+        <ImageView
+            android:id="@+id/player_back"
+            android:layout_width="40dp"
+            android:layout_height="40dp"
+            android:src="@drawable/ic_baseline_arrow_back_ios_24"
+            android:layout_gravity="center_vertical"
+            />
+        <TextView
+            android:id="@+id/player_title"
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:text=" @义城_的十年精选辑"
+            android:gravity="center"
+            android:textSize="16dp"
+            android:textColor="#9b9b9b"/>
+        <ImageView
+            android:layout_width="40dp"
+            android:layout_height="40dp"
+            android:src="@drawable/share"
+            android:layout_gravity="center_vertical"/>
+    </LinearLayout>
+    <FrameLayout
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1">
+
+        <ImageView
+            android:layout_width="350dp"
+            android:layout_height="350dp"
+            android:layout_gravity="center"
+            android:layout_margin="40dp"
+            android:background="@drawable/circle" />
+
+        <ImageView
+            android:layout_width="330dp"
+            android:layout_height="330dp"
+            android:layout_gravity="center"
+            android:background="@drawable/circlr1" />
+
+        <androidx.cardview.widget.CardView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            app:cardCornerRadius="1000dp"
+            android:layout_gravity="center">
+            <ImageView
+                android:id="@+id/player_pic"
+                android:layout_width="250dp"
+                android:layout_height="250dp"
+                android:layout_gravity="center"
+                android:src="@drawable/test"/>
+        </androidx.cardview.widget.CardView>
+    </FrameLayout>
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="80dp"
+        android:orientation="horizontal">
+        <LinearLayout
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="match_parent"
+            android:orientation="vertical">
+            <TextView
+                android:id="@+id/player_songName"
+                android:layout_width="200dp"
+                android:layout_height="wrap_content"
+                android:text="我的美丽"
+                android:textSize="28dp"
+                android:ellipsize="end"
+                android:maxLines="1"/>
+
+            <TextView
+                android:id="@+id/player_songAuthor"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:gravity="center_vertical"
+                android:text="海洋Bo/高睿"
+                android:textColor="#80cccccc"
+                android:ellipsize="end"
+                android:textSize="16dp" />
+        </LinearLayout>
+
+        <ImageView
+            android:layout_width="40dp"
+            android:layout_height="40dp"
+            android:src="@drawable/like"
+            android:layout_gravity="center"
+            android:layout_marginRight="40dp"
+            />
+
+        <ImageView
+            android:layout_width="41dp"
+            android:layout_height="41dp"
+            android:layout_gravity="center"
+            android:src="@drawable/pinglun" />
+
+
+
+    </LinearLayout>
+    <TextView
+        android:layout_marginTop="20dp"
+        android:layout_width="match_parent"
+        android:layout_height="2dp"
+        android:background="#cccccc"/>
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="5dp">
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="00:00"/>
+        <TextView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="wrap_content"
+            android:gravity="center"
+            android:text="极高"/>
+        <TextView
+            android:id="@+id/player_songTime"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="04:04"/>
+    </LinearLayout>
+
+    <LinearLayout
+        android:layout_marginTop="10dp"
+        android:layout_width="match_parent"
+        android:layout_height="60dp"
+        android:gravity="center">
+        <ImageView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="30dp"
+
+            android:src="@drawable/xunhuan"/>
+        <ImageView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="30dp"
+            android:src="@drawable/shang"/>
+        <ImageView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="40dp"
+            android:src="@drawable/play"/>
+        <ImageView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="30dp"
+            android:src="@drawable/next"/>
+        <ImageView
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="30dp"
+            android:src="@drawable/gfplaylist"/>
+
+
+    </LinearLayout>
+
+</LinearLayout>

+ 108 - 0
CloudyMiusic/app/src/main/res/layout/activity_song_list_info.xml

@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@color/white"
+    tools:context=".SongListInfo"
+    android:orientation="vertical">
+
+    <ScrollView
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:orientation="vertical">
+            <LinearLayout
+                android:id="@+id/songList_item_nav"
+                android:layout_width="match_parent"
+                android:layout_height="60dp"
+                android:background="#4D9264"
+                android:orientation="horizontal"
+                android:paddingLeft="20sp"
+                android:paddingRight="20sp">
+
+                <ImageView
+                    android:id="@+id/info_back"
+                    android:layout_width="30sp"
+                    android:layout_height="30sp"
+                    android:layout_gravity="center"
+                    android:src="@drawable/ic_baseline_arrow_back_24" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center"
+                    android:layout_marginLeft="10sp"
+                    android:text="歌单"
+                    android:textSize="20sp"
+                    android:textStyle="bold" />
+
+                <TextView
+                    android:layout_width="0dp"
+                    android:layout_height="wrap_content"
+                    android:layout_weight="1" />
+
+                <ImageView
+                    android:layout_width="30sp"
+                    android:layout_height="30sp"
+                    android:layout_gravity="right|center"
+                    android:layout_marginRight="10sp"
+                    android:src="@drawable/ic_baseline_search_24" />
+
+                <ImageView
+                    android:layout_width="30sp"
+                    android:layout_height="27dp"
+                    android:layout_gravity="right|center"
+                    android:src="@drawable/point_list" />
+            </LinearLayout>
+            <RelativeLayout
+                android:id="@+id/songList_item_backGround"
+                android:layout_width="match_parent"
+                android:layout_height="200sp"
+                android:background="@drawable/gcc">
+
+                <androidx.cardview.widget.CardView
+                    android:id="@+id/info_CardView"
+                    android:layout_width="120sp"
+                    android:layout_height="120sp"
+                    android:layout_margin="20sp"
+                    app:cardCornerRadius="20sp">
+
+                    <ImageView
+                        android:id="@+id/info_pic"
+                        android:layout_width="match_parent"
+                        android:layout_height="match_parent" />
+                </androidx.cardview.widget.CardView>
+
+                <TextView
+                    android:id="@+id/info_title"
+                    android:layout_width="200dp"
+                    android:layout_height="wrap_content"
+                    android:layout_marginTop="20sp"
+                    android:layout_toRightOf="@id/info_CardView"
+                    android:ellipsize="end"
+                    android:maxLines="2"
+                    android:text="地域说唱 | 乡音的呐喊,根植心底的诉说"
+                    android:textColor="@color/white"
+                    android:textSize="16sp" />
+            </RelativeLayout>
+            <RelativeLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:id="@+id/relative">
+                <androidx.recyclerview.widget.RecyclerView
+                    android:id="@+id/info_rv"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content" />
+            </RelativeLayout>
+        </LinearLayout>
+    </ScrollView>
+
+
+
+
+</LinearLayout>

+ 86 - 0
CloudyMiusic/app/src/main/res/layout/songlist_info_item.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="60sp"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:background="#cccccc"
+    android:layout_margin="12dp">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="60sp"
+        android:background="@color/white"
+        android:orientation="horizontal">
+        <androidx.cardview.widget.CardView
+            android:layout_width="60dp"
+            android:layout_height="60dp"
+            android:layout_marginRight="20dp"
+            android:layout_marginLeft="20dp"
+            app:cardCornerRadius="10dp">
+            <ImageView
+                android:id="@+id/info_pic"
+                android:layout_width="60sp"
+                android:layout_height="60sp"
+                android:gravity="center"
+                android:textColor="#cccccc"
+                android:textSize="24sp"/>
+        </androidx.cardview.widget.CardView>
+
+
+        <LinearLayout
+            android:layout_width="0dp"
+            android:layout_weight="1"
+            android:layout_height="match_parent"
+            android:orientation="vertical">
+
+            <TextView
+                android:id="@+id/info_songName"
+                android:layout_width="match_parent"
+                android:layout_height="71dp"
+                android:layout_weight="1"
+                android:gravity="center_vertical"
+                android:text="柳叶笺"
+                android:maxLines="1"
+                android:ellipsize="end"
+                android:textColor="@color/black"
+                android:textSize="16dp" />
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                >
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="match_parent"
+                    android:text="高清母带"
+                    android:textColor="#E4C98C"
+                    android:gravity="center_vertical"
+                    android:background="@drawable/border"
+                    android:textSize="10sp"
+                    android:padding="5dp"
+                    android:layout_marginRight="10dp"
+                    />
+                <TextView
+                    android:id="@+id/info_songAuthor"
+                    android:layout_width="wrap_content"
+                    android:layout_height="25dp"
+                    android:layout_weight="1"
+                    android:text="李锋大傻逼"
+                    android:textSize="12dp"
+                    android:textColor="#c5c5c5"
+                    android:gravity="center_vertical"/>
+            </LinearLayout>
+
+
+        </LinearLayout>
+
+        <ImageView
+            android:layout_width="30sp"
+            android:layout_height="30sp"
+            android:layout_gravity="center"
+            android:background="@drawable/point_list1"
+            android:layout_marginRight="10dp"/>
+
+    </LinearLayout>
+
+
+</LinearLayout>

+ 80 - 0
CloudyMiusic/app/src/main/res/layout/songlist_item.xml

@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:background="@color/white"
+    android:orientation="horizontal">
+
+    <LinearLayout
+        android:layout_width="wrap_content"
+        android:layout_height="match_parent"
+        android:orientation="vertical">
+
+        <androidx.cardview.widget.CardView
+            android:layout_width="120dp"
+            android:layout_height="120dp"
+            android:layout_marginLeft="20sp"
+            android:layout_marginTop="20sp"
+            android:layout_marginRight="20sp"
+            app:cardCornerRadius="10dp">
+
+            <RelativeLayout
+                android:layout_width="120sp"
+                android:layout_height="120sp">
+
+                <ImageView
+                    android:id="@+id/songList_item_pic"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:src="@drawable/test" />
+
+                <LinearLayout
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:gravity="center">
+
+                    <ImageView
+                        android:layout_width="15sp"
+                        android:layout_height="15dp"
+                        android:layout_marginLeft="5dp"
+                        android:background="@drawable/erji" />
+
+                    <TextView
+                        android:id="@+id/hot_people"
+                        android:layout_width="wrap_content"
+                        android:layout_height="20sp"
+                        android:layout_marginLeft="5sp"
+                        android:gravity="center"
+                        android:text="1564万"
+                        android:textColor="@color/white"
+                        android:textSize="10dp"
+                        android:textStyle="bold" />
+                </LinearLayout>
+
+                <ImageView
+                    android:layout_width="15sp"
+                    android:layout_height="15sp"
+                    android:layout_alignParentRight="true"
+                    android:layout_alignParentBottom="true"
+                    android:layout_marginRight="5sp"
+                    android:layout_marginBottom="5sp"
+                    android:background="@drawable/play" />
+            </RelativeLayout>
+        </androidx.cardview.widget.CardView>
+
+        <TextView
+            android:id="@+id/songList_item_title"
+            android:layout_width="120sp"
+            android:layout_height="49dp"
+            android:layout_marginLeft="20sp"
+            android:layout_marginTop="5sp"
+            android:layout_marginRight="20sp"
+            android:ellipsize="end"
+            android:maxLines="2"
+            android:text="李锋大傻逼李锋大傻逼李锋大傻逼李锋大傻逼李锋大傻逼李锋大傻逼"
+            android:textColor="@color/black"
+            android:textSize="16dp" />
+    </LinearLayout>
+
+</LinearLayout>

+ 8 - 0
CloudyMiusic/app/src/main/res/layout/welcome_activity.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:background="@drawable/welcome_page">
+
+</RelativeLayout>

+ 5 - 0
CloudyMiusic/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@drawable/ic_launcher_background" />
+    <foreground android:drawable="@drawable/ic_launcher_foreground" />
+</adaptive-icon>

+ 5 - 0
CloudyMiusic/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@drawable/ic_launcher_background" />
+    <foreground android:drawable="@drawable/ic_launcher_foreground" />
+</adaptive-icon>

BIN
CloudyMiusic/app/src/main/res/mipmap-hdpi/ic_launcher.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-mdpi/ic_launcher.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xhdpi/ic_launcher.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp


BIN
CloudyMiusic/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp


+ 16 - 0
CloudyMiusic/app/src/main/res/values-night/themes.xml

@@ -0,0 +1,16 @@
+<resources xmlns:tools="http://schemas.android.com/tools">
+    <!-- Base application theme. -->
+    <style name="Theme.CloudyMiusic" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
+        <!-- Primary brand color. -->
+        <item name="colorPrimary">@color/purple_200</item>
+        <item name="colorPrimaryVariant">@color/purple_700</item>
+        <item name="colorOnPrimary">@color/black</item>
+        <!-- Secondary brand color. -->
+        <item name="colorSecondary">@color/teal_200</item>
+        <item name="colorSecondaryVariant">@color/teal_200</item>
+        <item name="colorOnSecondary">@color/black</item>
+        <!-- Status bar color. -->
+        <item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
+        <!-- Customize your theme here. -->
+    </style>
+</resources>

+ 12 - 0
CloudyMiusic/app/src/main/res/values/colors.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="purple_200">#FFBB86FC</color>
+    <color name="purple_500">#FF6200EE</color>
+    <color name="purple_700">#FF3700B3</color>
+    <color name="teal_200">#FF03DAC5</color>
+    <color name="teal_700">#FF018786</color>
+    <color name="black">#FF000000</color>
+    <color name="white">#FFFFFFFF</color>
+    <color name="gray">#FF393941</color>
+    <color name="gray1">#FF1A1A1C</color>
+</resources>

+ 3 - 0
CloudyMiusic/app/src/main/res/values/strings.xml

@@ -0,0 +1,3 @@
+<resources>
+    <string name="app_name">CloudyMiusic</string>
+</resources>

+ 16 - 0
CloudyMiusic/app/src/main/res/values/themes.xml

@@ -0,0 +1,16 @@
+<resources xmlns:tools="http://schemas.android.com/tools">
+    <!-- Base application theme. -->
+    <style name="Theme.CloudyMiusic" parent="Theme.MaterialComponents.NoActionBar">
+        <!-- Primary brand color. -->
+        <item name="colorPrimary">@color/purple_500</item>
+        <item name="colorPrimaryVariant">@color/purple_700</item>
+        <item name="colorOnPrimary">@color/white</item>
+        <!-- Secondary brand color. -->
+        <item name="colorSecondary">@color/teal_200</item>
+        <item name="colorSecondaryVariant">@color/teal_700</item>
+        <item name="colorOnSecondary">@color/black</item>
+        <!-- Status bar color. -->
+        <item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
+        <!-- Customize your theme here. -->
+    </style>
+</resources>

+ 13 - 0
CloudyMiusic/app/src/main/res/xml/backup_rules.xml

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+   Sample backup rules file; uncomment and customize as necessary.
+   See https://developer.android.com/guide/topics/data/autobackup
+   for details.
+   Note: This file is ignored for devices older that API 31
+   See https://developer.android.com/about/versions/12/backup-restore
+-->
+<full-backup-content>
+    <!--
+   <include domain="sharedpref" path="."/>
+   <exclude domain="sharedpref" path="device.xml"/>
+-->
+</full-backup-content>

+ 19 - 0
CloudyMiusic/app/src/main/res/xml/data_extraction_rules.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+   Sample data extraction rules file; uncomment and customize as necessary.
+   See https://developer.android.com/about/versions/12/backup-restore#xml-changes
+   for details.
+-->
+<data-extraction-rules>
+    <cloud-backup>
+        <!-- TODO: Use <include> and <exclude> to control what is backed up.
+        <include .../>
+        <exclude .../>
+        -->
+    </cloud-backup>
+    <!--
+    <device-transfer>
+        <include .../>
+        <exclude .../>
+    </device-transfer>
+    -->
+</data-extraction-rules>

+ 14 - 0
CloudyMiusic/app/src/main/res/xml/network_security_config.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network_security_config xmlns:android="http://schemas.android.com/apk/res/android">
+    <base-config>
+        <trust-anchors>
+            <certificates src="system" />
+        </trust-anchors>
+    </base-config>
+    <!-- 允许明文通信(仅用于测试和开发) -->
+    <debug-overrides>
+        <trust-anchors>
+            <certificates src="user" />
+        </trust-anchors>
+    </debug-overrides>
+</network_security_config>

+ 17 - 0
CloudyMiusic/app/src/test/java/com/example/cloudymiusic/ExampleUnitTest.java

@@ -0,0 +1,17 @@
+package com.example.cloudymiusic;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+public class ExampleUnitTest {
+    @Test
+    public void addition_isCorrect() {
+        assertEquals(4, 2 + 2);
+    }
+}

+ 5 - 0
CloudyMiusic/build.gradle

@@ -0,0 +1,5 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+    id 'com.android.application' version '7.3.0-beta04' apply false
+    id 'com.android.library' version '7.3.0-beta04' apply false
+}

+ 21 - 0
CloudyMiusic/gradle.properties

@@ -0,0 +1,21 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true

BIN
CloudyMiusic/gradle/wrapper/gradle-wrapper.jar


+ 6 - 0
CloudyMiusic/gradle/wrapper/gradle-wrapper.properties

@@ -0,0 +1,6 @@
+#Wed May 22 14:50:33 CST 2024
+distributionBase=GRADLE_USER_HOME
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
+distributionPath=wrapper/dists
+zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME

+ 185 - 0
CloudyMiusic/gradlew

@@ -0,0 +1,185 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+##
+##  Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+        PRG="$link"
+    else
+        PRG=`dirname "$PRG"`"/$link"
+    fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+    echo "$*"
+}
+
+die () {
+    echo
+    echo "$*"
+    echo
+    exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+  CYGWIN* )
+    cygwin=true
+    ;;
+  Darwin* )
+    darwin=true
+    ;;
+  MINGW* )
+    msys=true
+    ;;
+  NONSTOP* )
+    nonstop=true
+    ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+        # IBM's JDK on AIX uses strange locations for the executables
+        JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+        JAVACMD="$JAVA_HOME/bin/java"
+    fi
+    if [ ! -x "$JAVACMD" ] ; then
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+    fi
+else
+    JAVACMD="java"
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ $? -eq 0 ] ; then
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+            MAX_FD="$MAX_FD_LIMIT"
+        fi
+        ulimit -n $MAX_FD
+        if [ $? -ne 0 ] ; then
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
+        fi
+    else
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+    fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+    JAVACMD=`cygpath --unix "$JAVACMD"`
+
+    # We build the pattern for arguments to be converted via cygpath
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+    SEP=""
+    for dir in $ROOTDIRSRAW ; do
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
+        SEP="|"
+    done
+    OURCYGPATTERN="(^($ROOTDIRS))"
+    # Add a user-defined pattern to the cygpath arguments
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+    fi
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
+    i=0
+    for arg in "$@" ; do
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
+
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+        else
+            eval `echo args$i`="\"$arg\""
+        fi
+        i=`expr $i + 1`
+    done
+    case $i in
+        0) set -- ;;
+        1) set -- "$args0" ;;
+        2) set -- "$args0" "$args1" ;;
+        3) set -- "$args0" "$args1" "$args2" ;;
+        4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+        5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+        6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+        7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+        8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+        9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+    esac
+fi
+
+# Escape application args
+save () {
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+    echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"

+ 89 - 0
CloudyMiusic/gradlew.bat

@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem      https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega

+ 16 - 0
CloudyMiusic/settings.gradle

@@ -0,0 +1,16 @@
+pluginManagement {
+    repositories {
+        gradlePluginPortal()
+        google()
+        mavenCentral()
+    }
+}
+dependencyResolutionManagement {
+    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+    repositories {
+        google()
+        mavenCentral()
+    }
+}
+rootProject.name = "CloudyMiusic"
+include ':app'