Мужики! Помогите сделать макет интерфейса (снимок на скрине). Там видно, что у меня проблемы с долбаными весами - не могу никак точно отвесить лайоутам нужный вес, так, чтобы кнопки вверху и внизу макета были одинаковыми! Вот структура макета:
5
android:
id
=
"@+id/cloth"
6
android:layout_width
=
"fill_parent"
7
android:layout_height
=
"fill_parent"
8
android:orientation
=
"vertical"
>
10
<!
-
-
Логотип HeaTPlaY
-
-
>
13
android:
id
=
"@+id/up_bar"
14
android:layout_width
=
"fill_parent"
15
android:layout_height
=
"fill_parent"
16
android:layout_weight
=
"2"
/
>
18
<!
-
-
Background верхней панели кнопок
-
-
>
21
android:orientation
=
"horizontal"
22
android:layout_width
=
"fill_parent"
23
android:layout_weight
=
"0"
24
android:background
=
"#cccccc"
>
26
<!
-
-
Кнопки верхней панели
-
-
>
29
android:orientation
=
"vertical"
30
android:layout_weight
=
"1"
31
android:background
=
"#000000"
32
android:layout_marginLeft
=
"1dp"
33
android:layout_marginBottom
=
"1dp"
34
android:layout_marginTop
=
"1dp"
>
37
android:
id
=
"@+id/ic_menu_agenda"
38
android:gravity
=
"center"
/
>
43
android:orientation
=
"vertical"
44
android:layout_weight
=
"1"
45
android:background
=
"#000000"
46
android:layout_marginLeft
=
"1dp"
47
android:layout_marginBottom
=
"1dp"
48
android:layout_marginTop
=
"1dp"
>
51
android:
id
=
"@+id/ic_menu_rotate"
52
android:layout_gravity
=
"center"
/
>
57
android:orientation
=
"vertical"
58
android:layout_weight
=
"1"
59
android:background
=
"#000000"
60
android:layout_marginLeft
=
"1dp"
61
android:layout_marginBottom
=
"1dp"
62
android:layout_marginTop
=
"1dp"
>
65
android:
id
=
"@+id/ic_menu_recent_history"
66
android:layout_gravity
=
"center"
/
>
71
android:orientation
=
"vertical"
72
android:layout_weight
=
"1"
73
android:background
=
"#000000"
74
android:layout_marginRight
=
"1dp"
75
android:layout_marginLeft
=
"1dp"
76
android:layout_marginBottom
=
"1dp"
77
android:layout_marginTop
=
"1dp"
>
80
android:
id
=
"@+id/ic_menu_search"
81
android:layout_gravity
=
"center"
/
>
87
<!
-
-
ListView для списка медиа контента
-
-
>
90
android:
id
=
"@+id/music_list"
91
android:layout_width
=
"fill_parent"
92
android:layout_height
=
"fill_parent"
93
android:layout_weight
=
"1"
/
>
95
<!
-
-
Background нижней панели кнопок
-
-
>
98
android:layout_below
=
"@id/body"
99
android:orientation
=
"horizontal"
100
android:layout_width
=
"fill_parent"
101
android:layout_weight
=
"0"
102
android:background
=
"#cccccc"
>
104
<!
-
-
Кнопки нижней панели
-
-
>
107
android:orientation
=
"vertical"
108
android:layout_weight
=
"1"
109
android:background
=
"#000000"
110
android:layout_marginLeft
=
"1dp"
111
android:layout_marginBottom
=
"1dp"
112
android:layout_marginTop
=
"1dp"
>
115
android:
id
=
"@+id/ic_media_previous"
116
android:gravity
=
"center"
/
>
121
android:orientation
=
"vertical"
122
android:layout_weight
=
"1"
123
android:background
=
"#000000"
124
android:layout_marginLeft
=
"1dp"
125
android:layout_marginBottom
=
"1dp"
126
android:layout_marginTop
=
"1dp"
>
129
android:
id
=
"@+id/ic_media_rew"
130
android:layout_gravity
=
"center"
/
>
135
android:orientation
=
"vertical"
136
android:layout_weight
=
"1"
137
android:background
=
"#000000"
138
android:layout_marginLeft
=
"1dp"
139
android:layout_marginBottom
=
"1dp"
140
android:layout_marginTop
=
"1dp"
>
143
android:
id
=
"@+id/ic_media_play"
144
android:layout_gravity
=
"center"
/
>
149
android:orientation
=
"vertical"
150
android:layout_weight
=
"1"
151
android:background
=
"#000000"
152
android:layout_marginRight
=
"1dp"
153
android:layout_marginLeft
=
"1dp"
154
android:layout_marginBottom
=
"1dp"
155
android:layout_marginTop
=
"1dp"
>
158
android:
id
=
"@+id/ic_media_ff"
159
android:layout_gravity
=
"center"
/
>
164
android:orientation
=
"vertical"
165
android:layout_weight
=
"1"
166
android:background
=
"#000000"
167
android:layout_marginRight
=
"1dp"
168
android:layout_marginLeft
=
"1dp"
169
android:layout_marginBottom
=
"1dp"
170
android:layout_marginTop
=
"1dp"
>
173
android:
id
=
"@+id/ic_media_next"
174
android:layout_gravity
=
"center"
/
>
Если есть желание, можете предложить свой вариант.
Спасибо!
Дополнительный скрин #1 (606,04 Kb)
ответ опубликован: 21:39 3 дек 2014 голосов: 2