From e407dd1f335aa9c716b89b3152bf363b898d28fa Mon Sep 17 00:00:00 2001
From: Runt <qingingrunt2010@qq.com>
Date: Sun, 29 May 2022 11:29:56 +0000
Subject: [PATCH] 接口请求框架 注册接口

---
 app/src/main/res/layout/activity_main.xml |   44 ++++++++++++++++++++++++++++++++++++--------
 1 files changed, 36 insertions(+), 8 deletions(-)

diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 5fb776e..0362135 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -27,30 +27,58 @@
         android:layout_height="wrap_content"
         android:text="确认"
         android:layout_margin="10dp"
-        app:layout_constraintBottom_toBottomOf="@id/edit"
+        app:layout_constraintTop_toBottomOf="@id/edit"
         app:layout_constraintRight_toRightOf="@id/edit"/>
+
+    <androidx.appcompat.widget.AppCompatButton
+        android:id="@+id/clear"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="清空"
+        android:layout_margin="10dp"
+        app:layout_constraintRight_toLeftOf="@id/button"
+        app:layout_constraintTop_toBottomOf="@id/edit" />
+
+    <androidx.appcompat.widget.AppCompatButton
+        android:id="@+id/collect"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="收藏"
+        android:layout_margin="10dp"
+        app:layout_constraintRight_toLeftOf="@id/clear"
+        app:layout_constraintTop_toBottomOf="@id/edit" />
+
+    <androidx.appcompat.widget.AppCompatButton
+        android:id="@+id/save"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="保存"
+        android:layout_margin="10dp"
+        app:layout_constraintRight_toLeftOf="@id/collect"
+        app:layout_constraintLeft_toLeftOf="@id/edit"
+        app:layout_constraintTop_toBottomOf="@id/edit" />
 
     <TextView
         android:id="@+id/txt_local"
         android:layout_width="match_parent"
-        android:layout_height="40dp"
+        android:layout_height="50dp"
         android:text="本地歌词"
         android:gravity="center_vertical"
         android:paddingLeft="16dp"
         android:textSize="16sp"
-        android:background="@drawable/bg_white"
-        app:layout_constraintTop_toBottomOf="@id/edit"
+        android:background="@drawable/bg_white_divider"
+        app:layout_constraintTop_toBottomOf="@id/save"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"/>
     <TextView
         android:id="@+id/txt_favorite"
         android:layout_width="match_parent"
-        android:layout_height="40dp"
+        android:layout_height="50dp"
         android:text="我的收藏"
         android:gravity="center_vertical"
         android:paddingLeft="16dp"
         android:textSize="16sp"
-        android:background="@drawable/bg_white"
+        android:background="@drawable/bg_white_divider"
         app:layout_constraintTop_toBottomOf="@id/txt_local"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"/>
@@ -59,12 +87,12 @@
     <TextView
         android:id="@+id/txt_setting"
         android:layout_width="match_parent"
-        android:layout_height="40dp"
+        android:layout_height="50dp"
         android:text="设置"
         android:gravity="center_vertical"
         android:paddingLeft="16dp"
         android:textSize="16sp"
-        android:background="@drawable/bg_white"
+        android:background="@drawable/bg_white_divider"
         app:layout_constraintTop_toBottomOf="@id/txt_favorite"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"/>

--
Gitblit v1.9.1