1:修改签到布局
This commit is contained in:
@@ -32,10 +32,11 @@ class SignInDialog(context: Context) : BaseDialog<DialogSignBinding>(context) {
|
||||
// 设置对话框从底部弹出
|
||||
window?.setGravity(Gravity.CENTER)
|
||||
// 设置对话框的宽度为屏幕宽度
|
||||
window?.setLayout(
|
||||
(ScreenUtils.getScreenWidth() * 331f / 375).toInt(),
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
)
|
||||
// 2025年12月12日15:56:12 实验这里去掉,然后给布局中设置paddingHorizontal,效果和这里设置固定宽度是一样的
|
||||
// window?.setLayout(
|
||||
// (ScreenUtils.getScreenWidth() * 331f / 375).toInt(),
|
||||
// ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
// )
|
||||
// 添加动画效果
|
||||
window?.setWindowAnimations(com.xscm.moduleutil.R.style.DialogAnimationt)
|
||||
setCancelable(false)
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/dp_20">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/im_v"
|
||||
|
||||
Reference in New Issue
Block a user