Compare commits

...

2 Commits

Author SHA1 Message Date
renhaoting 271baf8d18 看视频dialog UI美化+1 2025-11-21 16:07:56 +08:00
renhaoting a9d0b37bed 看视频dialog UI美化 2025-11-21 15:59:47 +08:00
6 changed files with 34 additions and 15 deletions

View File

@ -15,8 +15,9 @@ class BeginnerGiftDialog(context: Context) : BindingDialog<DialogBeginnerGiftBin
private fun build() {
with()
setCanceledOnTouchOutside(false)
setCenter()
setMaskValue(0.8f)
setMaskValue(0.93f)
mBinding.run {
setOnClickBatch(tvAction) {

View File

@ -17,8 +17,9 @@ class WatchVideoDialog(context: Context) : BindingDialog<DialogWatchVideoBinding
private fun build() {
with()
setCanceledOnTouchOutside(false)
setCenter()
setMaskValue(0.8f)
setMaskValue(0.93f)
mBinding.run {
setOnClickBatch(flAction, ivClose) {

View File

@ -3,6 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="50dp"
android:orientation="vertical" >
<androidx.appcompat.widget.AppCompatImageView
@ -24,8 +25,7 @@
android:orientation="vertical"
android:layout_gravity="center"
android:src="@mipmap/temp"
android:layout_marginEnd="30dp"
android:layout_marginTop="20dp"
android:layout_marginTop="50dp"
/>
<androidx.appcompat.widget.AppCompatTextView
@ -33,23 +33,38 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="50dp"
android:textSize="16sp"
android:textColor="@color/white"
android:text="@string/watch_video_hint"
android:gravity="center"
/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp" >
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_coin_effect"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:src="@mipmap/watch_video_gold_effect"
android:layout_marginEnd="30dp"
android:layout_marginTop="20dp"
android:src="@mipmap/watch_video_gold_effect_2"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="28sp"
android:textStyle="bold"
android:textColor="@color/red_5c"
android:text="+100"
android:layout_gravity="bottom|center"
android:layout_marginBottom="110dp"
/>
</FrameLayout>
<FrameLayout
android:id="@+id/fl_action"
@ -58,8 +73,9 @@
android:layout_marginHorizontal="20dp"
android:paddingVertical="10dp"
android:layout_marginTop="10dp"
android:background="@drawable/vididinapp_feature_message_bg_task_fazer">
android:background="@mipmap/icon_action_but_bg">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_reward_gold_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
@ -67,7 +83,7 @@
android:text="@string/assistir"
android:layout_gravity="center"
android:gravity="center"
android:drawableStart="@mipmap/temp"
android:drawableStart="@mipmap/task_video"
android:drawablePadding="10dp"
/>
</FrameLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 KiB

View File

@ -74,6 +74,7 @@
<color name="red_2f">#FFFF862F</color>
<color name="gray_f2">#fff2f2f2</color>
<color name="red_11">#FF931411</color>
<color name="red_5c">#FFFF0A5C</color>
</resources>