调整签到提示对话框高度

This commit is contained in:
zlzw 2022-10-21 13:44:29 +08:00
parent 99e07bf861
commit 512708284c
2 changed files with 6 additions and 3 deletions

View File

@ -45,6 +45,7 @@ public class SignDialogFragment extends AbsDialogFragment {
params.width = DpUtil.dp2px(250);
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
params.gravity = Gravity.CENTER;
params.y= params.y+DpUtil.dp2px(50);
window.setAttributes(params);
}

View File

@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="251dp"
android:layout_height="371dp"
android:layout_marginTop="150dp"
android:background="@mipmap/bg_live_sign">
@ -11,11 +12,10 @@
android:id="@+id/live_sign_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="140dp"
android:layout_marginTop="125dp"
android:text="恭喜您第一天簽到成功!"
android:textColor="#FFFFFF"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
@ -24,7 +24,8 @@
android:id="@+id/icon_sign"
android:layout_width="87dp"
android:layout_height="87dp"
android:layout_marginBottom="27dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="37dp"
app:layout_constraintBottom_toTopOf="@+id/live_sign_btn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -49,6 +50,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#651308"
android:layout_marginTop="10dp"
android:text="萌新勛章"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"