From 4f103dadc95419cef534e3b3c50165f486cf115d Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 22 May 2023 16:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=98=B2=E6=8A=96=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/common/views/InputCustomPopup.java | 25 ++++++++++------- live/src/main/res/layout/view_live_ready.xml | 5 ++-- .../yunbao/main/activity/LoginActivity.java | 27 ++++++++++++------- 3 files changed, 35 insertions(+), 22 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/views/InputCustomPopup.java b/common/src/main/java/com/yunbao/common/views/InputCustomPopup.java index 25a8e22da..bfffdb1d5 100644 --- a/common/src/main/java/com/yunbao/common/views/InputCustomPopup.java +++ b/common/src/main/java/com/yunbao/common/views/InputCustomPopup.java @@ -12,6 +12,7 @@ import com.lxj.xpopup.animator.PopupAnimator; import com.lxj.xpopup.core.CenterPopupView; import com.yunbao.common.R; import com.yunbao.common.utils.ToastUtil; +import com.yunbao.common.views.weight.ViewClicksAntiShake; /** * 输入弹窗 @@ -54,15 +55,21 @@ public class InputCustomPopup extends CenterPopupView { findViewById(R.id.btn_confirm).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { - String textContent = content.getText().toString(); - if (TextUtils.isEmpty(textContent)) { - ToastUtil.show("输入内容不可为空"); - return; - } - if (listener != null) { - listener.onConfirm(textContent); - } - dismiss(); // 关闭弹窗 + ViewClicksAntiShake.clicksAntiShake(v, new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + String textContent = content.getText().toString(); + if (TextUtils.isEmpty(textContent)) { + ToastUtil.show("输入内容不可为空"); + return; + } + if (listener != null) { + listener.onConfirm(textContent); + } + dismiss(); // 关闭弹窗 + } + }); + } }); } diff --git a/live/src/main/res/layout/view_live_ready.xml b/live/src/main/res/layout/view_live_ready.xml index 20e7118f0..afcff57aa 100644 --- a/live/src/main/res/layout/view_live_ready.xml +++ b/live/src/main/res/layout/view_live_ready.xml @@ -32,12 +32,11 @@ android:layout_width="30dp" android:layout_height="30dp" android:layout_alignParentRight="true" - android:layout_marginRight="20dp" android:layout_marginTop="50dp" + android:layout_marginRight="20dp" android:padding="5dp" android:src="@mipmap/icon_live_ready_close" - android:tint="@color/white" - /> + android:tint="@color/white" />