Вывод ответа #1865360329

-

SL4A - Scripting Layer For Android

Программа для написания и запуска скриптов прямо н

{autor_name}


{text_rank}
репутация: {repa}
{registration_date}
сообщений: {posts}
{tel_link}
#{postnumber_id}

Мужикт, еще вопрос... Прикрепил два скрина: на первом вверху экрана присутствуют логотип, полоса прогресс бара и информационное поле с текстом "Исполнитель". После клика по треку в центре экрана, в информационном поле пояыляется строка: "Название трека, имя исполнителя, нязвание альбома, стиль трека". На втором сирине видно, что конкретно у меня не получается: Информационное поле при добавлении большой строки работает, как wrap_content, а мне нужно однострочное поле. Переюзал все параметры, не получается, как следует. Ниже привожу код макета.

1<?xml version="1.0"
2encoding="utf-8"?>
3<LinearLayout
5    android:id="@+id/cloth"
6    android:layout_width="fill_parent"
7    android:layout_height="fill_parent"
8    android:orientation="vertical">
9 
10    <LinearLayout
11        android:orientation="vertical"
12        android:layout_width="fill_parent"
13        android:layout_height="fill_parent"
14        android:background="#000000"
15        android:layout_weight="2">
16 
17        <!-- Логотип HeaTPlaY -->
18 
19        <View
20            android:id="@+id/up_bar"
21            android:layout_width="fill_parent"
22            android:layout_weight="8"
23            android:layout_marginLeft="5dp"
24            android:layout_marginRight="5dp"
25            android:layout_marginBottom="5dp"/>
26 
27        <!-- Прогресс бар трека -->
28 
29        <View
30            android:id="@+id/pos_line"
31            android:layout_weight="14"
32            android:layout_width="fill_parent"
33            android:background="#cccccc"
34            android:layout_marginLeft="5dp"
35            android:layout_marginRight="5dp"
36            android:layout_marginBottom="5dp"/>
37 
38        <!-- Информационное поле -->
39 
40        <TextView
41            android:id="@+id/track_info"
42            android:layout_weight="0"
43            android:layout_width="fill_parent"
44            android:layout_marginLeft="5dp"
45            android:layout_marginRight="5dp"
46            android:layout_marginBottom="5dp"
47            android:background="#cccccc"
48            android:textColor="#000000"
49            android:text="Исполнитель"/>
50 
51    </LinearLayout>
52 
53    <!-- Background верхней панели кнопок -->
54 
55    <LinearLayout
56        android:orientation="horizontal"
57        android:layout_width="fill_parent"
58        android:layout_weight="0"
59        android:background="#cccccc">
60 
61        <!-- Кнопки верхней панели -->
62 
63        <LinearLayout
64            android:orientation="vertical"
65            android:layout_weight="1"
66            android:background="#000000"
67            android:layout_marginLeft="1dp"
68            android:layout_marginBottom="1dp"
69            android:layout_marginTop="1dp">
70 
71            <ImageButton
72                android:id="@+id/ic_menu_agenda"
73                android:layout_height="48dp"
74                android:gravity="center"/>
75 
76        </LinearLayout>
77 
78        <LinearLayout
79            android:orientation="vertical"
80            android:layout_weight="1"
81            android:background="#000000"
82            android:layout_marginLeft="1dp"
83            android:layout_marginBottom="1dp"
84            android:layout_marginTop="1dp">
85 
86            <ImageButton
87                android:id="@+id/ic_menu_rotate"
88                android:layout_height="48dp"
89                android:layout_gravity="center"/>
90 
91        </LinearLayout>
92 
93        <LinearLayout
94            android:orientation="vertical"
95            android:layout_weight="1"
96            android:background="#000000"
97            android:layout_marginLeft="1dp"
98            android:layout_marginBottom="1dp"
99            android:layout_marginTop="1dp">
100 
101            <ImageButton
102                android:id="@+id/ic_menu_recent_history"
103                android:layout_height="48dp"
104                android:layout_gravity="center"/>
105 
106        </LinearLayout>
107 
108        <LinearLayout
109            android:orientation="vertical"
110            android:layout_weight="1"
111            android:background="#000000"
112            android:layout_marginRight="1dp"
113            android:layout_marginLeft="1dp"
114            android:layout_marginBottom="1dp"
115            android:layout_marginTop="1dp">
116 
117            <ImageButton
118                android:id="@+id/ic_menu_search"
119                android:layout_height="48dp"
120                android:layout_gravity="center"/>
121 
122        </LinearLayout>
123 
124    </LinearLayout>
125 
126    <!-- ListView для списка медиа контента -->
127 
128    <ListView
129        android:id="@+id/music_list"
130        android:layout_width="fill_parent"
131        android:layout_height="fill_parent"
132        android:layout_weight="1"/>
133 
134    <!-- Background нижней панели кнопок -->
135 
136    <LinearLayout
137        android:layout_below="@id/body"
138        android:orientation="horizontal"
139        android:layout_width="fill_parent"
140        android:layout_weight="0"
141        android:background="#cccccc">
142 
143        <!-- Кнопки нижней панели -->
144 
145        <LinearLayout
146            android:orientation="vertical"
147            android:layout_weight="1"
148            android:background="#000000"
149            android:layout_marginLeft="1dp"
150            android:layout_marginBottom="1dp"
151            android:layout_marginTop="1dp">
152 
153            <ImageButton
154                android:id="@+id/ic_media_previous"
155                android:layout_height="48dp"
156                android:gravity="center"/>
157 
158        </LinearLayout>
159 
160        <LinearLayout
161            android:orientation="vertical"
162            android:layout_weight="1"
163            android:background="#000000"
164            android:layout_marginLeft="1dp"
165            android:layout_marginBottom="1dp"
166            android:layout_marginTop="1dp">
167 
168            <ImageButton
169                android:id="@+id/ic_media_rew"
170                android:layout_height="48dp"
171                android:layout_gravity="center"/>
172 
173        </LinearLayout>
174 
175        <LinearLayout
176            android:orientation="vertical"
177            android:layout_weight="1"
178            android:background="#000000"
179            android:layout_marginLeft="1dp"
180            android:layout_marginBottom="1dp"
181            android:layout_marginTop="1dp">
182 
183            <ImageButton
184                android:id="@+id/ic_media_play"
185                android:layout_height="48dp"
186                android:layout_gravity="center"/>
187 
188        </LinearLayout>
189 
190        <LinearLayout
191            android:orientation="vertical"
192            android:layout_weight="1"
193            android:background="#000000"
194            android:layout_marginRight="1dp"
195            android:layout_marginLeft="1dp"
196            android:layout_marginBottom="1dp"
197            android:layout_marginTop="1dp">
198 
199            <ImageButton
200                android:id="@+id/ic_media_ff"
201                android:layout_height="48dp"
202                android:layout_gravity="center"/>
203 
204        </LinearLayout>
205 
206        <LinearLayout
207            android:orientation="vertical"
208            android:layout_weight="1"
209            android:background="#000000"
210            android:layout_marginRight="1dp"
211            android:layout_marginLeft="1dp"
212            android:layout_marginBottom="1dp"
213            android:layout_marginTop="1dp">
214 
215            <ImageButton
216                android:id="@+id/ic_media_next"
217                android:layout_height="48dp"
218                android:layout_gravity="center"/>
219 
220        </LinearLayout>
221 
222    </LinearLayout>
223 
224</LinearLayout>





Дополнительный скрин #1 (651.99 Kb)

Дополнительный скрин #1 (655.49 Kb)


ответ опубликован:
Рейтинг: 5
голосов: 2



Яндекс.Метрика