Browse Source

0.0.45.beta15

kongzue 3 năm trước cách đây
mục cha
commit
c268f4534e

+ 11 - 5
DialogX/src/main/res/layout/layout_dialogx_custom.xml

@@ -5,12 +5,18 @@
     android:layout_height="match_parent"
     android:orientation="vertical">
 
+<!--    保留一层额外的 RelativeLayout 的原因是对于子布局设置 layout_centerInParent 时,-->
+<!--    DialogXBaseRelativeLayout 的安全区 padding不生效-->
     <RelativeLayout
-        android:id="@+id/box_custom"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_centerInParent="true"
-        android:clickable="true">
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+        <RelativeLayout
+            android:id="@+id/box_custom"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_centerInParent="true"
+            android:clickable="true"/>
 
     </RelativeLayout>
 

+ 5 - 0
app/src/main/res/layout/layout_custom_dialog.xml

@@ -10,6 +10,11 @@
         android:layout_centerHorizontal="true"
         android:src="@mipmap/img_custom_dialog_bkg" />
 
+    <EditText
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_centerInParent="true"/>
+
     <ImageView
         android:id="@+id/btn_ok"
         android:layout_width="200dp"

+ 1 - 1
gradle.properties

@@ -19,5 +19,5 @@ android.useAndroidX=true
 # Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 
-BUILD_VERSION=0.0.45.beta14
+BUILD_VERSION=0.0.45.beta15
 BUILD_VERSION_INT=44