layout_voice_broadcast_float.xml
4.71 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
<?xml version="1.0" encoding="utf-8"?>
<com.hjq.shape.layout.ShapeConstraintLayout 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:id="@+id/clRoot"
android:layout_width="@dimen/rmrb_dp267"
android:layout_height="@dimen/rmrb_dp84"
app:shape_radius="@dimen/rmrb_dp4"
app:shape_shadowColor="@color/res_color_general_26000000"
app:shape_shadowSize="@dimen/rmrb_dp12"
app:shape_solidColor="@color/res_color_common_C8"
app:shape_type="rectangle">
<!-- 动画 -->
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lavSoundWave"
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:src="@mipmap/audio_occupying_bitmap"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginStart="@dimen/rmrb_dp30"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
<!-- 标题 -->
<com.wd.common.widget.MarqueeNormalTextView
android:id="@+id/mtvTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/rmrb_dp22"
android:layout_marginTop="@dimen/rmrb_dp22"
android:layout_marginEnd="@dimen/rmrb_dp9"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp14"
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/ivPlay"
app:layout_constraintTop_toTopOf="parent"
tools:text="主产区已完成预计旺季收购量六成左右——我国夏粮购销两旺"
tools:textColor="@color/res_color_common_C1" />
<!-- 当前时间、总时间 -->
<TextView
android:id="@+id/tvTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp12"
app:layout_constraintLeft_toLeftOf="@+id/mtvTitle"
app:layout_constraintTop_toBottomOf="@+id/mtvTitle"
android:text="00:00/00:00" />
<!-- 播放、暂停按钮-->
<ImageView
android:id="@+id/ivPlay"
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_marginEnd="@dimen/rmrb_dp12"
app:layout_constraintBottom_toBottomOf="parent"
android:background="@mipmap/voice_play_black"
app:layout_constraintRight_toLeftOf="@+id/ivClose"
app:layout_constraintTop_toTopOf="parent" />
<!-- 关闭按钮 -->
<ImageView
android:id="@+id/ivClose"
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_marginEnd="@dimen/rmrb_dp24"
android:background="@mipmap/voice_close"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!-- 进度条-->
<com.wd.common.widget.ForbidDragSeekBar
android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp3"
android:background="@null"
android:max="100"
android:layout_marginLeft="@dimen/rmrb_dp12"
android:layout_marginRight="@dimen/rmrb_dp12"
android:layout_marginBottom="@dimen/rmrb_dp12"
android:paddingStart="0dp"
android:paddingLeft="0dp"
android:paddingEnd="0dp"
android:paddingRight="0dp"
android:progressDrawable="@drawable/mglayoutnew_mini_audio_seekbar"
app:layout_constraintBottom_toBottomOf="parent"
tools:progress="50" />
<!-- 收起的视图集合 -->
<androidx.constraintlayout.widget.Group
android:id="@+id/gPackUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
app:constraint_referenced_ids="lavSoundWave" />
<!-- 展开的视图集合 -->
<androidx.constraintlayout.widget.Group
android:id="@+id/gUnfold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="visible"
app:constraint_referenced_ids="mtvTitle,tvTime,ivPlay,ivClose,seekBar" />
</com.hjq.shape.layout.ShapeConstraintLayout>