修复#249问题

This commit is contained in:
zlzw 2023-08-02 14:39:56 +08:00
parent 1bdf3a2ba3
commit 2705342e18
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="350dp"
android:layout_height="370dp"
android:layout_height="wrap_content"
android:background="@mipmap/viptip_box"
android:orientation="vertical">
@ -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"