Browse Source

0.0.50.beta20 pre
- BottomDialog 提供了对外暴露的 boxBody(对话框内容布局外层)实例;

Kongzue 9 months ago
parent
commit
22ea8cb628

+ 2 - 0
DialogX/src/main/java/com/kongzue/dialogx/dialogs/BottomDialog.java

@@ -255,6 +255,7 @@ public class BottomDialog extends BaseDialog implements DialogXBaseBottomDialog
         public RelativeLayout boxBkg;
         public MaxRelativeLayout bkg;
         public ImageView imgTab;
+        public ViewGroup boxBody;
         public TextView txtDialogTitle;
         public ScrollController scrollView;
         public LinearLayout boxContent;
@@ -280,6 +281,7 @@ public class BottomDialog extends BaseDialog implements DialogXBaseBottomDialog
             boxBkg = convertView.findViewById(R.id.box_bkg);
             bkg = convertView.findViewById(R.id.bkg);
             imgTab = convertView.findViewById(R.id.img_tab);
+            boxBody = convertView.findViewById(R.id.box_body);
             txtDialogTitle = convertView.findViewById(R.id.txt_dialog_title);
             scrollView = convertView.findViewById(R.id.scrollView);
             boxContent = convertView.findViewById(R.id.box_content);

+ 1 - 0
DialogX/src/main/res/layout/layout_dialogx_bottom_material.xml

@@ -31,6 +31,7 @@
                 android:src="@drawable/rect_dialogx_material_dialogtap" />
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"

+ 1 - 0
DialogX/src/main/res/layout/layout_dialogx_bottom_material_dark.xml

@@ -31,6 +31,7 @@
                 android:src="@drawable/rect_dialogx_material_dialogtap_night" />
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"

+ 1 - 0
DialogXIOSStyle/src/main/res/layout/layout_dialogx_bottom_ios.xml

@@ -30,6 +30,7 @@
                 android:orientation="vertical">
 
                 <com.kongzue.dialogx.util.views.MaxRelativeLayout
+                    android:id="@+id/box_body"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_weight="1"

+ 1 - 0
DialogXIOSStyle/src/main/res/layout/layout_dialogx_bottom_ios_dark.xml

@@ -30,6 +30,7 @@
                 android:orientation="vertical">
 
                 <com.kongzue.dialogx.util.views.MaxRelativeLayout
+                    android:id="@+id/box_body"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_weight="1"

+ 1 - 0
DialogXKongzueStyle/src/main/res/layout/layout_dialogx_bottom_kongzue.xml

@@ -21,6 +21,7 @@
             android:focusableInTouchMode="true">
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:clickable="true"

+ 1 - 0
DialogXKongzueStyle/src/main/res/layout/layout_dialogx_bottom_kongzue_dark.xml

@@ -21,6 +21,7 @@
             android:focusableInTouchMode="true">
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:clickable="true"

+ 1 - 0
DialogXMIUIStyle/src/main/res/layout/layout_dialogx_bottom_miui.xml

@@ -21,6 +21,7 @@
             android:focusableInTouchMode="true">
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:clickable="true"

+ 1 - 0
DialogXMIUIStyle/src/main/res/layout/layout_dialogx_bottom_miui_dark.xml

@@ -21,6 +21,7 @@
             android:focusableInTouchMode="true">
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:clickable="true"

+ 1 - 0
DialogXMaterialYou/src/main/res/layout/layout_dialogx_bottom_material_you.xml

@@ -32,6 +32,7 @@
                 android:src="@drawable/rect_dialogx_material_you_dialogtap" />
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"

+ 1 - 0
DialogXMaterialYou/src/main/res/layout/layout_dialogx_bottom_material_you_dark.xml

@@ -32,6 +32,7 @@
                 android:src="@drawable/rect_dialogx_material_you_dialogtap_night" />
 
             <LinearLayout
+                android:id="@+id/box_body"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"