Browse Source

修改乐器选择页面pad适配

Pq 1 year ago
parent
commit
bb6a3ec632
1 changed files with 4 additions and 2 deletions
  1. 4 2
      student/src/main/res/layout/layout_teachable_instrument_item.xml

+ 4 - 2
student/src/main/res/layout/layout_teachable_instrument_item.xml

@@ -7,7 +7,8 @@
     <com.cooleshow.base.widgets.QMUIRadiusImageView
         android:id="@+id/iv_pic"
         android:layout_width="match_parent"
-        android:layout_height="108dp"
+        android:layout_height="0dp"
+        app:layout_constraintDimensionRatio="w,1:1"
         android:layout_marginLeft="5dp"
         android:layout_marginTop="5dp"
         android:layout_marginRight="5dp"
@@ -16,10 +17,11 @@
         app:qmui_corner_radius="10dp" />
     <View
         android:layout_width="match_parent"
-        android:layout_height="108dp"
+        android:layout_height="0dp"
         android:layout_marginLeft="5dp"
         android:layout_marginTop="5dp"
         android:layout_marginRight="5dp"
+        app:layout_constraintBottom_toBottomOf="@+id/iv_pic"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintTop_toTopOf="parent"
         android:background="@drawable/bg_teachable_instrument"