From f19c20d59eb7b24eba557333ea9ffe6527620793 Mon Sep 17 00:00:00 2001 From: hss01248 Date: Fri, 9 Dec 2022 14:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ui=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialog/ios/IosAlertDialogHolder.java | 28 ++-- .../src/main/res/layout/dialog_ios_alert.xml | 16 +-- .../res/layout/dialog_ios_alert_vertical.xml | 120 ------------------ 3 files changed, 21 insertions(+), 143 deletions(-) delete mode 100644 dialog/src/main/res/layout/dialog_ios_alert_vertical.xml diff --git a/dialog/src/main/java/com/hss01248/dialog/ios/IosAlertDialogHolder.java b/dialog/src/main/java/com/hss01248/dialog/ios/IosAlertDialogHolder.java index c52e079..d553633 100644 --- a/dialog/src/main/java/com/hss01248/dialog/ios/IosAlertDialogHolder.java +++ b/dialog/src/main/java/com/hss01248/dialog/ios/IosAlertDialogHolder.java @@ -7,7 +7,7 @@ import android.text.method.PasswordTransformationMethod; import android.view.View; import android.view.ViewGroup; -import android.widget.Button; +import android.widget.TextView; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.ScrollView; @@ -29,17 +29,17 @@ public class IosAlertDialogHolder extends SuperLvHolder { public EditText et1; public EditText et2; protected View line; - protected Button btn1; + protected TextView btn1; protected View lineBtn2; - protected Button btn2; + protected TextView btn2; protected View lineBtn3; - protected Button btn3; + protected TextView btn3; protected LinearLayout llContainerHorizontal; - protected Button btn1Vertical; + protected TextView btn1Vertical; protected View lineBtn2Vertical; - protected Button btn2Vertical; + protected TextView btn2Vertical; protected View lineBtn3Vertical; - protected Button btn3Vertical; + protected TextView btn3Vertical; protected LinearLayout llContainerVertical; protected ScrollView sv; protected LinearLayout llContainerContent; @@ -58,17 +58,17 @@ protected void findViews() { et1 = (EditText) rootView.findViewById(R.id.et_1); et2 = (EditText) rootView.findViewById(R.id.et_2); line = (View) rootView.findViewById(R.id.line); - btn1 = (Button) rootView.findViewById(R.id.btn_1); + btn1 = (TextView) rootView.findViewById(R.id.btn_1); lineBtn2 = (View) rootView.findViewById(R.id.line_btn2); - btn2 = (Button) rootView.findViewById(R.id.btn_2); + btn2 = (TextView) rootView.findViewById(R.id.btn_2); lineBtn3 = (View) rootView.findViewById(R.id.line_btn3); - btn3 = (Button) rootView.findViewById(R.id.btn_3); + btn3 = (TextView) rootView.findViewById(R.id.btn_3); llContainerHorizontal = (LinearLayout) rootView.findViewById(R.id.ll_container_horizontal); - btn1Vertical = (Button) rootView.findViewById(R.id.btn_1_vertical); + btn1Vertical = (TextView) rootView.findViewById(R.id.btn_1_vertical); lineBtn2Vertical = (View) rootView.findViewById(R.id.line_btn2_vertical); - btn2Vertical = (Button) rootView.findViewById(R.id.btn_2_vertical); + btn2Vertical = (TextView) rootView.findViewById(R.id.btn_2_vertical); lineBtn3Vertical = (View) rootView.findViewById(R.id.line_btn3_vertical); - btn3Vertical = (Button) rootView.findViewById(R.id.btn_3_vertical); + btn3Vertical = (TextView) rootView.findViewById(R.id.btn_3_vertical); llContainerVertical = (LinearLayout) rootView.findViewById(R.id.ll_container_vertical); sv = (ScrollView) rootView.findViewById(R.id.sv); llContainerContent = (LinearLayout) rootView.findViewById(R.id.ll_container); @@ -331,8 +331,6 @@ private void setInputStyle(Context context, ConfigBean bean) { et1.setText(bean.inputText1); et1.setSelection(bean.inputText1.length()); } - - } if (TextUtils.isEmpty(bean.hint2)) { diff --git a/dialog/src/main/res/layout/dialog_ios_alert.xml b/dialog/src/main/res/layout/dialog_ios_alert.xml index 591d161..9c0932c 100644 --- a/dialog/src/main/res/layout/dialog_ios_alert.xml +++ b/dialog/src/main/res/layout/dialog_ios_alert.xml @@ -4,7 +4,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" app:cardBackgroundColor="#ffffff" - app:cardCornerRadius="20dp" + app:cardCornerRadius="12dp" app:cardElevation="0dp" app:cardMaxElevation="0dp" android:layout_height="wrap_content"> @@ -101,18 +101,18 @@ android:layout_width="match_parent" android:minHeight="48dp" android:layout_height="wrap_content"> - @@ -122,7 +122,7 @@ android:background="@color/dialogutil_line_dd" android:layout_width="1px" android:layout_height="match_parent"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -