From 2705342e18134cc56ff17761c0da1a69a969c53b Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 2 Aug 2023 14:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D#249=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/dialog/HighNobilityDialog.java | 2 +- live/src/main/res/layout/view_hight_nobility.xml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/HighNobilityDialog.java b/live/src/main/java/com/yunbao/live/dialog/HighNobilityDialog.java index 176126632..79c89d915 100644 --- a/live/src/main/java/com/yunbao/live/dialog/HighNobilityDialog.java +++ b/live/src/main/java/com/yunbao/live/dialog/HighNobilityDialog.java @@ -30,7 +30,7 @@ public class HighNobilityDialog extends AbsDialogFragment { window.setWindowAnimations(R.style.bottomToTopAnim); WindowManager.LayoutParams params = window.getAttributes(); params.width = DpUtil.dp2px(340); - params.height = DpUtil.dp2px(360); + params.height = WindowManager.LayoutParams.WRAP_CONTENT; params.gravity = Gravity.CENTER; window.setAttributes(params); } diff --git a/live/src/main/res/layout/view_hight_nobility.xml b/live/src/main/res/layout/view_hight_nobility.xml index 0a8148235..5c7195d59 100644 --- a/live/src/main/res/layout/view_hight_nobility.xml +++ b/live/src/main/res/layout/view_hight_nobility.xml @@ -1,7 +1,7 @@ @@ -37,6 +37,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="22dp" + android:layout_marginBottom="15dp" android:layout_marginEnd="16dp" android:gravity="center_horizontal"> @@ -60,9 +61,9 @@ android:layout_marginStart="20dp" android:background="@drawable/bg_btn_common" android:enabled="true" - android:paddingStart="48dp" + android:paddingStart="30dp" android:paddingTop="15dp" - android:paddingEnd="48dp" + android:paddingEnd="30dp" android:paddingBottom="15dp" android:text="@string/go_nobility" android:textColor="@color/white"