-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity_main.xml
121 lines (109 loc) · 4.18 KB
/
activity_main.xml
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="match_parent"
android:orientation="vertical"
tools:context=".MainActivity"
android:background="@drawable/yy">
<LinearLayout
android:layout_width="match_parent"
android:layout_weight="1.1"
android:layout_height="match_parent">
<EditText
android:id="@+id/search_editText"
android:inputType="text"
android:maxLines="1"
android:layout_weight="1"
android:hint="@string/search"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/search_buttons"
android:text="@string/search"
android:layout_weight="3"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<ScrollView
android:id="@+id/play_list_scroll"
android:layout_weight="0.3"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/play_list"
android:orientation="vertical"
android:visibility="visible"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</ScrollView>
<ScrollView
android:id="@+id/search_result_scroll"
android:layout_weight="0.3"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/search_result"
android:orientation="vertical"
android:visibility="visible"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:layout_height="match_parent">
<TextView
android:id="@+id/nowMusic"
android:layout_width="match_parent"
android:maxLines="1"
android:layout_margin="5dp"
android:text="当前播放:"
android:layout_height="wrap_content">
</TextView>
<SeekBar
android:id="@+id/seekbar"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_weight="0.6"
android:layout_height="match_parent">
<Button
android:id="@+id/preMusic"
android:text="上一首"
android:layout_margin="5dp"
android:layout_weight="3"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<Button
android:id="@+id/playlist"
android:text="播放队列"
android:textSize="10sp"
android:layout_margin="5dp"
android:layout_weight="3"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<Button
android:id="@+id/playMusic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="3"
android:text="播放音乐"
android:textSize="12sp" />
<Button
android:id="@+id/nextMusic"
android:text="下一首"
android:layout_margin="5dp"
android:layout_weight="3"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>