-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.lua
116 lines (94 loc) · 3.1 KB
/
layout.lua
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
main={RelativeLayout,
layout_width="fill_parent",
layout_height="fill_parent",
gravity="top|center",
-- orientation="vertical",
{TextView,
layout_height="wrap_content",
text="享受平凡音质",
textSize="25",
layout_width="match_parent",
id="tv_title",
layout_alignParentTop=true,
padding="10dp",
background="#605756",
textColor="#FFFFFF"},
{ImageView,
layout_height="wrap_content",
layout_width="wrap_content",
id="back",
-- src="back",
layout_margin="10dp",
layout_centerHorizontal=true,
layout_centerVertical=true
},
{LinearLayout,
layout_height="wrap_content",
layout_width="match_parent",
orientation="vertical",
id="mainLinearLayout1",
gravity="bottom|center",
layout_alignParentBottom=true,
{LinearLayout,
layout_height="wrap_content",
layout_width="match_parent",
orientation="horizontal",
-- layout_below="mainImageView1",
id="mainLinearLayout2",
gravity="center",
layout_marginBottom="10dp",
{TextView,
layout_height="wrap_content",
text="00:00",
id="tv_startTime",
layout_width="wrap_content"},
{SeekBar,
layout_height="wrap_content",
style="progressBarStyleHorizontal",
layout_width="wrap_content",
id="mainProgressBar1",
id="pb_time",
layout_weight="1.0"
},
{TextView,
layout_height="wrap_content",
text="00:00",
id="tv_endTime",
layout_width="wrap_content"},
},
{LinearLayout,
layout_height="wrap_content",
layout_width="match_parent",
orientation="horizontal",
--layout_below="mainLinearLayout2",
gravity="center",
layout_marginBottom="10dp",
{Button,
layout_height="wrap_content",
text="列表",
onClick="on_playlist",
layout_width="wrap_content"},
{Button,
layout_height="wrap_content",
text="<<",
onClick="on_pre",
layout_width="wrap_content"},
{Button,
layout_height="wrap_content",
id="bn_pause",
onClick="on_pause",
text="■",
layout_width="wrap_content"},
{Button,
layout_height="wrap_content",
text=">>",
onClick="on_next",
layout_width="wrap_content"},
{Button,
layout_height="wrap_content",
text="菜单",
onClick="on_Menu",
layout_width="wrap_content"}
},
},
}