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"