From cd13751df41c6504b3934cd3f1bd441c4ba172ff Mon Sep 17 00:00:00 2001
From: lmw <125975490@qq.com>
Date: 星期五, 19 七月 2024 11:38:27 +0800
Subject: [PATCH] fix bug

---
 app/src/main/res/layout/fragment_include.xml |  352 ++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 205 insertions(+), 147 deletions(-)

diff --git a/app/src/main/res/layout/fragment_include.xml b/app/src/main/res/layout/fragment_include.xml
index c8a2a56..db1f053 100644
--- a/app/src/main/res/layout/fragment_include.xml
+++ b/app/src/main/res/layout/fragment_include.xml
@@ -150,40 +150,49 @@
         app:layout_constraintDimensionRatio="3:1"
         app:layout_constraintTop_toTopOf="parent"
         android:layout_marginTop="15dp"
-        android:id="@+id/cl_voice1"
         android:layout_marginStart="4dp"
-        android:layout_marginEnd="40dp"
-        android:background="@drawable/selector_bg_voice">
-        <ImageView
-            android:id="@+id/iv1_1"
-            android:layout_width="wrap_content"
+        android:id="@+id/cl_voice1"
+        android:layout_marginEnd="40dp">
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:id="@+id/cl_voice1_real"
+            android:visibility="gone"
             android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/yuyin"
-            app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
-            android:layout_marginStart="25dp"/>
-        <ImageView
-            android:id="@+id/iv2_1"
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/play"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            android:layout_marginEnd="23dp"/>
-        <ImageView
-            android:id="@+id/iv_playing_1"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:visibility="gone"
-            android:src="@mipmap/bofangzhong"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintStart_toStartOf="parent" />
+            android:background="@drawable/selector_bg_voice">
+            <ImageView
+                android:id="@+id/iv1_1"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/yuyin"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="25dp"/>
+            <ImageView
+                android:id="@+id/iv2_1"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/play"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:layout_marginEnd="23dp"/>
+            <ImageView
+                android:id="@+id/iv_playing_1"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:visibility="gone"
+                android:src="@mipmap/bofangzhong"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintStart_toStartOf="parent" />
+        </androidx.constraintlayout.widget.ConstraintLayout>
+
     </androidx.constraintlayout.widget.ConstraintLayout>
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="0dp"
@@ -194,7 +203,14 @@
         app:layout_constraintTop_toTopOf="@id/cl_voice1"
         android:id="@+id/cl_voice2"
         android:layout_marginStart="4dp"
-        android:layout_marginEnd="40dp"
+        android:layout_marginEnd="40dp">
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_width="match_parent"
+        android:id="@+id/cl_voice2_real"
+        android:visibility="gone"
+        android:layout_height="match_parent"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
         android:background="@drawable/selector_bg_voice">
         <ImageView
             android:id="@+id/iv1_2"
@@ -227,6 +243,8 @@
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent" />
     </androidx.constraintlayout.widget.ConstraintLayout>
+
+    </androidx.constraintlayout.widget.ConstraintLayout>
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="0dp"
         android:layout_height="0dp"
@@ -236,38 +254,48 @@
         app:layout_constraintTop_toTopOf="@id/cl_voice1"
         android:id="@+id/cl_voice3"
         android:layout_marginStart="4dp"
-        android:layout_marginEnd="40dp"
-        android:background="@drawable/selector_bg_voice">
-        <ImageView
-            android:id="@+id/iv1_3"
-            android:layout_width="wrap_content"
+        android:layout_marginEnd="40dp">
+
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:id="@+id/cl_voice3_real"
+            android:visibility="gone"
             android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/yuyin"
-            app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
-            android:layout_marginStart="25dp"/>
-        <ImageView
-            android:id="@+id/iv2_3"
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/play"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            android:layout_marginEnd="23dp"/>
-        <ImageView
-            android:id="@+id/iv_playing_3"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:visibility="gone"
-            android:src="@mipmap/bofangzhong"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintStart_toStartOf="parent" />
+            android:background="@drawable/selector_bg_voice">
+            <ImageView
+                android:id="@+id/iv1_3"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/yuyin"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="25dp"/>
+            <ImageView
+                android:id="@+id/iv2_3"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/play"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:layout_marginEnd="23dp"/>
+            <ImageView
+                android:id="@+id/iv_playing_3"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:visibility="gone"
+                android:src="@mipmap/bofangzhong"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintStart_toStartOf="parent" />
+        </androidx.constraintlayout.widget.ConstraintLayout>
+
     </androidx.constraintlayout.widget.ConstraintLayout>
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="0dp"
@@ -279,38 +307,48 @@
         android:layout_marginBottom="14dp"
         android:id="@+id/cl_voice4"
         android:layout_marginStart="4dp"
-        android:layout_marginEnd="40dp"
-        android:background="@drawable/selector_bg_voice">
-        <ImageView
-            android:id="@+id/iv1_4"
-            android:layout_width="wrap_content"
+        android:layout_marginEnd="40dp">
+
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:id="@+id/cl_voice4_real"
+            android:visibility="gone"
             android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/yuyin"
-            app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
-            android:layout_marginStart="25dp"/>
-        <ImageView
-            android:id="@+id/iv2_4"
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/play"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            android:layout_marginEnd="23dp"/>
-        <ImageView
-            android:id="@+id/iv_playing_4"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:visibility="gone"
-            android:src="@mipmap/bofangzhong"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintStart_toStartOf="parent" />
+            android:background="@drawable/selector_bg_voice">
+            <ImageView
+                android:id="@+id/iv1_4"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/yuyin"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="25dp"/>
+            <ImageView
+                android:id="@+id/iv2_4"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/play"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:layout_marginEnd="23dp"/>
+            <ImageView
+                android:id="@+id/iv_playing_4"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:visibility="gone"
+                android:src="@mipmap/bofangzhong"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintStart_toStartOf="parent" />
+        </androidx.constraintlayout.widget.ConstraintLayout>
+
     </androidx.constraintlayout.widget.ConstraintLayout>
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="0dp"
@@ -321,38 +359,48 @@
         android:layout_marginEnd="40dp"
         app:layout_constraintTop_toTopOf="@id/cl_voice4"
         android:id="@+id/cl_voice5"
-        android:layout_marginStart="4dp"
-        android:background="@drawable/selector_bg_voice">
-        <ImageView
-            android:id="@+id/iv1_5"
-            android:layout_width="wrap_content"
+        android:layout_marginStart="4dp">
+
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:id="@+id/cl_voice5_real"
+            android:visibility="gone"
             android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/yuyin"
-            app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
-            android:layout_marginStart="25dp"/>
-        <ImageView
-            android:id="@+id/iv2_5"
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/play"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            android:layout_marginEnd="23dp"/>
-        <ImageView
-            android:id="@+id/iv_playing_5"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:visibility="gone"
-            android:src="@mipmap/bofangzhong"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintStart_toStartOf="parent" />
+            android:background="@drawable/selector_bg_voice">
+            <ImageView
+                android:id="@+id/iv1_5"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/yuyin"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="25dp"/>
+            <ImageView
+                android:id="@+id/iv2_5"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/play"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                android:layout_marginEnd="23dp"/>
+            <ImageView
+                android:id="@+id/iv_playing_5"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:visibility="gone"
+                android:src="@mipmap/bofangzhong"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintStart_toStartOf="parent" />
+        </androidx.constraintlayout.widget.ConstraintLayout>
+
     </androidx.constraintlayout.widget.ConstraintLayout>
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="0dp"
@@ -363,38 +411,48 @@
         android:layout_marginEnd="40dp"
         app:layout_constraintTop_toTopOf="@id/cl_voice4"
         android:id="@+id/cl_voice6"
-        android:layout_marginStart="4dp"
-        android:background="@drawable/selector_bg_voice">
-        <ImageView
-            android:id="@+id/iv1_6"
-            android:layout_width="wrap_content"
+        android:layout_marginStart="4dp">
+
+        <androidx.constraintlayout.widget.ConstraintLayout
+            android:layout_width="match_parent"
+            android:id="@+id/cl_voice6_real"
+            android:visibility="gone"
             android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/yuyin"
-            app:layout_constraintTop_toTopOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
-            android:layout_marginStart="25dp"/>
-        <ImageView
-            android:id="@+id/iv2_6"
-            android:layout_width="wrap_content"
-            android:layout_height="match_parent"
-            android:layout_marginVertical="6dp"
-            android:src="@mipmap/play"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            android:layout_marginEnd="23dp"/>
-        <ImageView
-            android:id="@+id/iv_playing_6"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:visibility="gone"
-            android:src="@mipmap/bofangzhong"
-            app:layout_constraintTop_toTopOf="parent"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toEndOf="parent"
-            app:layout_constraintStart_toStartOf="parent" />
+            android:background="@drawable/selector_bg_voice">
+            <ImageView
+                android:id="@+id/iv1_6"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/yuyin"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintStart_toStartOf="parent"
+                android:layout_marginStart="25dp"/>
+            <ImageView
+                android:id="@+id/iv2_6"
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_marginVertical="6dp"
+                android:src="@mipmap/play"
+                app:layout_constraintTop_toTopOf="parent"
+                android:layout_marginEnd="23dp"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent" />
+            <ImageView
+                android:id="@+id/iv_playing_6"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:visibility="gone"
+                android:src="@mipmap/bofangzhong"
+                app:layout_constraintTop_toTopOf="parent"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintEnd_toEndOf="parent"
+                app:layout_constraintStart_toStartOf="parent" />
+        </androidx.constraintlayout.widget.ConstraintLayout>
+
     </androidx.constraintlayout.widget.ConstraintLayout>
 
     <com.facebook.drawee.view.SimpleDraweeView

--
Gitblit v1.7.1