Sfoglia il codice sorgente

修复部分弹窗样式平板适配问题

Pq 2 anni fa
parent
commit
47ca2e1f65

+ 4 - 1
teacher/src/main/res/layout/dialog_badge_des_layout.xml

@@ -6,7 +6,9 @@
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/cs_content"
-        android:layout_width="match_parent"
+        android:layout_width="0dp"
+        app:layout_constraintRight_toRightOf="@+id/iv_header"
+        app:layout_constraintLeft_toLeftOf="@+id/iv_header"
         android:layout_height="wrap_content"
         android:layout_marginTop="25dp"
         android:background="@drawable/bg_white_10dp"
@@ -240,6 +242,7 @@
     </androidx.constraintlayout.widget.ConstraintLayout>
 
     <ImageView
+        android:id="@+id/iv_header"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:src="@drawable/icon_badge_des_header"

+ 4 - 1
teacher/src/main/res/layout/dialog_home_cert_tip_layout.xml

@@ -6,7 +6,9 @@
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/cs_content"
-        android:layout_width="match_parent"
+        android:layout_width="0dp"
+        app:layout_constraintRight_toRightOf="@+id/iv_header"
+        app:layout_constraintLeft_toLeftOf="@+id/iv_header"
         android:layout_height="wrap_content"
         android:layout_marginTop="25dp"
         android:background="@drawable/bg_white_10dp"
@@ -190,6 +192,7 @@
     </androidx.constraintlayout.widget.ConstraintLayout>
 
     <ImageView
+        android:id="@+id/iv_header"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:src="@drawable/bg_home_cert_dialog_header"