From de76eefd7d48280b22cd9c07abd2b1c0312440df Mon Sep 17 00:00:00 2001
From: muqing <1966944300@qq.com>
Date: Fri, 19 Jul 2024 08:03:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86UI?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 55 ++----
.../muqingbfq/activity_about_software.java | 16 +-
.../com/muqingbfq/adapter/AdapterMp3.java | 75 ++++++++
app/src/main/java/com/muqingbfq/api/url.java | 6 +-
app/src/main/java/com/muqingbfq/bfq.java | 8 +-
.../com/muqingbfq/fragment/gd_adapter.java | 111 ++---------
.../main/java/com/muqingbfq/fragment/mp3.java | 16 +-
.../java/com/muqingbfq/fragment/wode.java | 27 +--
app/src/main/java/com/muqingbfq/home.java | 33 ++--
.../java/com/muqingbfq/login/user_logs.java | 21 +-
app/src/main/java/com/muqingbfq/main.java | 2 +-
.../com/muqingbfq/mq/AppCompatActivity.java | 13 +-
.../muqingbfq/mq/FloatingLyricsService.java | 55 +++---
.../main/java/com/muqingbfq/mq/Fragment.java | 27 +++
.../com/muqingbfq/mq/RecyclerAdapter.java | 13 ++
app/src/main/java/com/muqingbfq/mq/VH.java | 16 ++
app/src/main/java/com/muqingbfq/mq/gj.java | 6 +-
app/src/main/java/com/muqingbfq/mq/llq.java | 18 +-
app/src/main/java/com/muqingbfq/sz.java | 79 ++++----
app/src/main/res/drawable/mpbackground.xml | 4 +-
.../res/layout/activity_about_software.xml | 179 ++++++++++--------
app/src/main/res/layout/activity_bfq.xml | 2 +
app/src/main/res/layout/activity_mp3.xml | 2 +-
.../main/res/layout/activity_sz_setlrc.xml | 69 +++----
.../main/res/layout/activity_user_logs.xml | 78 ++------
app/src/main/res/layout/float_lrcview.xml | 36 ++--
app/src/main/res/layout/fragment_bflb_db.xml | 18 +-
app/src/main/res/layout/fragment_bfq_db.xml | 3 +-
app/src/main/res/layout/fragment_gd.xml | 39 ++--
app/src/main/res/layout/list_gd.xml | 12 +-
app/src/main/res/layout/list_gd_b.xml | 14 +-
app/src/main/res/layout/list_mp3.xml | 99 +++++-----
app/src/main/res/layout/list_mp3_image.xml | 63 +++---
settings.gradle | 4 +-
34 files changed, 616 insertions(+), 603 deletions(-)
create mode 100644 app/src/main/java/com/muqingbfq/adapter/AdapterMp3.java
create mode 100644 app/src/main/java/com/muqingbfq/mq/Fragment.java
create mode 100644 app/src/main/java/com/muqingbfq/mq/RecyclerAdapter.java
create mode 100644 app/src/main/java/com/muqingbfq/mq/VH.java
diff --git a/README.md b/README.md
index 5a6ae62..ab0f144 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,12 @@
-云音乐是什么?
+## 云音乐是什么?
一个对接网易云的音乐播放器
-
* 内置集成作者自己写的歌词Lrc组件支持单行歌词和多行歌词支持悬浮窗歌词。
* 内置适配Android13的通知栏 (不完善请大佬请教)
* 对接了网易云的歌单,歌曲,搜索,二维码登录等其余功能。
* main.java-内api变量是网易云SDK后台服务器地址(可变更)
* http 是我服务器php接口的地址用于软件更新用或者其他功能(个根据需要做出必须的更改或者删除)
-进度:
-
+## 进度
* UI
* 歌单
* 音乐播放选择列表
@@ -24,54 +22,23 @@
* 悬浮歌词功能
* 基本播放器功能(控制暂停 上下曲 播放歌单操作)
-
+
+## 截图
-* 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
- * [邮件]()
- * QQ:1966944300
- * 后台源码-Github: [网易云音乐 API](https://github.com/Binaryify/NeteaseCloudMusicApi)
+## 在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
+ * QQ:1966944300
-开发者说 :
+## 后台
+ * Github: [网易云音乐 API](https://github.com/Binaryify/NeteaseCloudMusicApi)
+
+## 关于
在兴趣的驱动下,写一个`免费`的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。
-导入的包
-
-```javascript
-dependencies {
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.9.0'
-
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
-
- implementation 'com.google.code.gson:gson:2.9.1'
-
- implementation 'com.squareup.okhttp3:okhttp:4.11.0'
- //图片处理
- implementation 'com.github.bumptech.glide:glide:4.16.0'
- implementation "androidx.palette:palette:1.0.0"
-// 废弃的歌词组件
-// implementation 'com.github.wangchenyan:lrcview:2.2.1'
- implementation 'com.google.android.flexbox:flexbox:3.0.0'
-
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
-
-//修改音乐标签库
- implementation 'com.mpatric:mp3agic:0.9.1'
-
-// 沉浸式状态栏
- api project(path: ':StatusBarUtil')
- api project(path: ':lrcview')
-}
-```
-
-修改JAR的包
+## 修改JAR的包
```javascript
[//]: # (主要修改内容MD3化)
com.github.QuadFlask:colorpicker:0.0.15
diff --git a/app/src/main/java/com/muqingbfq/activity_about_software.java b/app/src/main/java/com/muqingbfq/activity_about_software.java
index 427176d..e34966f 100644
--- a/app/src/main/java/com/muqingbfq/activity_about_software.java
+++ b/app/src/main/java/com/muqingbfq/activity_about_software.java
@@ -6,6 +6,7 @@ import android.content.res.AssetManager;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
+import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
@@ -14,14 +15,15 @@ import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
-import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.google.android.material.bottomsheet.BottomSheetDialog;
+import com.muqingbfq.databinding.ActivityAboutSoftwareBinding;
import com.muqingbfq.databinding.ListKaifazheBinding;
+import com.muqingbfq.mq.AppCompatActivity;
import com.muqingbfq.mq.gj;
import com.muqingbfq.mq.wj;
@@ -32,21 +34,20 @@ import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
-public class activity_about_software extends AppCompatActivity {
+public class activity_about_software extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_about_software);
+ setContentView();
try {
String versionName = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
- ((TextView) findViewById(R.id.text2)).setText(String.format("%s Bate", versionName));
+ binding.text2.setText(String.format("%s Bate", versionName));
} catch (PackageManager.NameNotFoundException e) {
yc.start(this, e);
}
setSupportActionBar(findViewById(R.id.toolbar));
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
findViewById(R.id.button1).setOnClickListener(view -> {
- wj.sc(wj.filesdri + "gx.mq");
new Thread() {
@Override
public void run() {
@@ -103,6 +104,11 @@ public class activity_about_software extends AppCompatActivity {
return super.onOptionsItemSelected(item);
}
+ @Override
+ protected ActivityAboutSoftwareBinding getViewBindingObject(LayoutInflater layoutInflater) {
+ return ActivityAboutSoftwareBinding.inflate(layoutInflater);
+ }
+
class botton extends BottomSheetDialog {
List