调整红包查看手气的UI

This commit is contained in:
zlzw 2023-07-06 10:02:04 +08:00
parent addab80997
commit 6743ec3cf6
4 changed files with 16 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -2,36 +2,42 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/gift_name"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="dadsad"
android:layout_weight="1"
android:textColor="@color/white"
android:textSize="16sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_weight="0.1"
android:gravity="end|center_vertical">
<ImageView
android:id="@+id/gift_image"
android:layout_width="20dp"
android:layout_height="20dp" />
android:layout_height="20dp"
tools:srcCompat="@mipmap/beauty_jingbai" />
<TextView
android:id="@+id/gift_number"
android:layout_width="40dp"
android:gravity="end"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:textColor ="@color/white"
android:layout_weight="1"
android:gravity="end"
android:text="10000"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>

View File

@ -2,6 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:animateLayoutChanges="true"
android:background="@mipmap/background_red_packet"
android:backgroundTintMode="src_over">
@ -33,6 +34,7 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/user_list"
android:layout_width="200dp"
tools:listitem="@layout/view_red_packet_luck_user"
android:layout_height="241dp"
android:layout_marginTop="26dp" />
</LinearLayout>

View File

@ -8,5 +8,5 @@
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/img_no_anchor" />
android:background="@mipmap/img_no_anchor0" />
</LinearLayout>