From 512708284ceb4ccb74f962e26fcb7bd9d9e94925 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 21 Oct 2022 13:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AD=BE=E5=88=B0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=AF=B9=E8=AF=9D=E6=A1=86=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/dialog/SignDialogFragment.java | 1 + live/src/main/res/layout/dialog_live_sign.xml | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/SignDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/SignDialogFragment.java index b21ec5c17..2036a89c4 100644 --- a/live/src/main/java/com/yunbao/live/dialog/SignDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/SignDialogFragment.java @@ -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); } diff --git a/live/src/main/res/layout/dialog_live_sign.xml b/live/src/main/res/layout/dialog_live_sign.xml index bfd450b44..c8eb30fe2 100644 --- a/live/src/main/res/layout/dialog_live_sign.xml +++ b/live/src/main/res/layout/dialog_live_sign.xml @@ -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"