adapter_play_item.xml
6.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root_view"
android:layout_width="match_parent"
android:layout_height="77dp"
android:orientation="vertical"
tools:background="@color/res_color_common_C8">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textView2"
android:layout_width="@dimen/rmrb_dp44"
android:layout_height="wrap_content"
android:text="3"
android:textColor="@color/res_color_common_C1_s3"
android:gravity="center"
android:textSize="@dimen/rmrb_dp14"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottieplaytag"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_marginLeft="@dimen/rmrb_dp14"
app:lottie_autoPlay="false"
app:lottie_loop="false"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible"
tools:background="@color/res_color_common_C11"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginLeft="@dimen/rmrb_dp44"
app:layout_constraintTop_toTopOf="parent">
<com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/rmrb_dp16"
android:paddingBottom="@dimen/margin_5"
android:paddingTop="@dimen/margin_5"
android:paddingEnd="@dimen/rmrb_dp16"
android:textColor="@color/res_color_common_C1"
android:ellipsize="end"
android:maxLines="1"
tools:text="要想越过越幸福,试试这6dddddddddddddd个方法"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp24">
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="@dimen/rmrb_dp16"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp12"
tools:text="2023-02-25" />
<ImageView
android:id="@+id/ivduration"
android:layout_width="@dimen/rmrb_dp13"
android:layout_height="@dimen/rmrb_dp13"
android:scaleType="fitXY"
android:src="@mipmap/res_icon_time_audiotopic"
android:layout_gravity="center_vertical"
android:visibility="visible"
/>
<TextView
android:id="@+id/tvduration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp12"
android:text="@{album.duration}"
tools:text="05:23"
tools:visibility="visible"
/>
</LinearLayout>
</LinearLayout>
<net.steamcrafted.materialiconlib.MaterialIconView
android:id="@+id/iv_play_status"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="12dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:scaleType="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:materialIcon="music_note"
app:materialIconColor="@color/gray"
android:visibility="gone"
app:materialIconSize="28dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tvunline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/rmrb_dp16"
android:paddingVertical="@dimen/rmrb_dp12"
android:layout_centerHorizontal="true"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/rmrb_a3a3a3_light"
android:textSize="@dimen/rmrb_dp12"
android:visibility="gone"
tools:text="已到底线"
tools:visibility="visible"
/>
</RelativeLayout>