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"