lmw
2023-06-16 03972ad1d3ce6ffe0be0395c0a4d5dcb4474031f
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/picture_dialog_shadow">
 
    <TextView
        android:id="@+id/tv_musicStatus"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:padding="10dp"
        android:text="播放"
        android:textColor="@color/picture_color_9b"
        android:textSize="14sp" />
 
    <RelativeLayout
        android:id="@+id/rlSeekBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/tv_musicStatus"
        android:layout_gravity="center"
        android:gravity="center_horizontal|center_vertical">
 
        <!--显示当前进度-->
        <TextView
            android:id="@+id/tv_musicTime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:text="00:00"
            android:textColor="@color/picture_color_9b"
            android:textSize="12sp" />
 
 
        <SeekBar
            android:id="@+id/musicSeekBar"
            android:layout_width="220dp"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            android:layout_toRightOf="@+id/tv_musicTime"
            android:layout_weight="1"
            android:max="100"
            android:maxHeight="4.0dp"
            android:minHeight="4.0dp"
            android:progressDrawable="@drawable/picture_layer_progress"
            android:thumb="@drawable/picture_sb_thumb"
            android:thumbOffset="0dp" />
 
        <!--显示总进度-->
        <TextView
            android:id="@+id/tv_musicTotal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@+id/musicSeekBar"
            android:text="00:00"
            android:textColor="@color/picture_color_9b"
            android:textSize="12sp" />
 
    </RelativeLayout>
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/rlSeekBar"
        android:layout_marginTop="15dp"
        android:layout_marginBottom="15dp"
        android:gravity="center_horizontal"
        android:orientation="horizontal">
 
        <TextView
            android:id="@+id/tv_PlayPause"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="25dp"
            android:layout_weight="1"
            android:background="@drawable/picture_btn_music_shape"
            android:gravity="center"
            android:text="@string/picture_play_audio"
            android:textColor="@color/picture_color_white"
            android:textSize="14sp" />
 
        <TextView
            android:id="@+id/tv_Stop"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="15dp"
            android:layout_weight="1"
            android:background="@drawable/picture_btn_music_shape"
            android:gravity="center"
            android:text="@string/picture_stop_audio"
            android:textColor="@color/picture_color_white"
            android:textSize="14sp" />
 
        <TextView
            android:id="@+id/tv_Quit"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="25dp"
            android:layout_weight="1"
            android:background="@drawable/picture_btn_music_shape"
            android:gravity="center"
            android:text="@string/picture_quit_audio"
            android:textColor="@color/picture_color_white"
            android:textSize="14sp" />
    </LinearLayout>
</RelativeLayout>