OSDN Git Service

am 9e852f03: AI 149721: Import Portuguese translations.
[android-x86/packages-apps-Settings.git] / res / layout / installed_app_details.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 ** Copyright 2008, The Android Open Source Project
5 **
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
9 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
11 **
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 */
18 -->
19 <ScrollView
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="fill_parent"
22     android:layout_height="fill_parent">
23     <LinearLayout
24         android:id="@+id/all_details"
25         android:layout_width="fill_parent"
26         android:layout_height="fill_parent"
27         android:paddingRight="6dip"
28         android:paddingTop="5dip"
29         android:paddingBottom="5dip"
30         android:orientation="vertical">
31
32         <!-- App snippet -->
33         <RelativeLayout
34             android:layout_width="fill_parent"
35             android:layout_height="wrap_content"
36             android:layout_gravity="center_vertical">
37
38             <LinearLayout
39                 android:orientation="vertical"
40                 android:layout_alignParentLeft="true"
41                 android:layout_width="fill_parent"
42                 android:layout_height="wrap_content"
43                 android:paddingTop="6dip"
44                 android:paddingBottom="6dip"
45                 android:paddingRight="6dip"
46                 android:paddingLeft="6dip" >
47                 <!-- application name -->
48                 <TextView android:id="@+id/app_name"
49                     android:layout_width="wrap_content"
50                     android:layout_height="wrap_content"
51                     android:textAppearance="?android:attr/textAppearanceMedium"
52                     android:textStyle="bold"
53                     android:singleLine="true"
54                     android:ellipsize="marquee"
55                     android:layout_marginBottom="2dip" />
56                 <!-- application version -->
57                 <TextView android:id="@+id/app_version"
58                     android:layout_marginTop="-4dip"
59                     android:layout_gravity="center_vertical"
60                     android:layout_width="wrap_content"
61                     android:layout_height="wrap_content"
62                     android:textAppearance="?android:attr/textAppearanceSmall" />
63             </LinearLayout>
64
65             <!-- application icon -->
66             <ImageView android:id="@+id/app_icon"
67                 android:layout_width="@android:dimen/app_icon_size"
68                 android:layout_height="@android:dimen/app_icon_size"
69                 android:layout_alignParentRight="true"
70                 android:paddingTop="6dip"
71                 android:paddingBottom="6dip"
72                 android:paddingRight="6dip"
73                 android:scaleType="fitCenter" />
74         </RelativeLayout>
75
76
77         <TextView
78             style="?android:attr/listSeparatorTextViewStyle"
79             android:text="@string/storage_label" />
80
81         <LinearLayout
82             android:layout_width="fill_parent"
83             android:layout_height="wrap_content"
84             android:paddingLeft="6dip"
85             android:orientation="vertical">
86             <LinearLayout
87                 android:layout_width="fill_parent"
88                 android:layout_height="wrap_content"
89                 android:orientation="horizontal"
90                 android:baselineAligned="true"
91                 android:paddingTop="-1dip">
92                 <TextView
93                     android:id="@+id/total_size_prefix"
94                     android:text="@string/total_size_label"
95                     android:textAppearance="?android:attr/textAppearanceMedium"
96                     android:layout_height="wrap_content"
97                     android:layout_width="wrap_content"
98                     android:maxLines="1"
99                     android:paddingTop="6dip"
100                     android:paddingLeft="6dip"/>
101
102                 <ImageView
103                     android:id="@+id/info_size_dots"
104                     android:src="@drawable/dotted_line_480px"
105                     android:layout_width="0dip"
106                     android:layout_weight="1"
107                     android:layout_height="1px"
108                     android:layout_gravity="bottom"
109                     android:layout_marginLeft="1dip"
110                     android:layout_marginRight="1dip"
111                     android:layout_marginBottom="4dip"
112                     android:scaleType="center" />
113                 <TextView
114                     android:id="@+id/total_size_text"
115                     android:paddingTop="6dip"
116                     android:paddingRight="6dip"
117                     android:textAppearance="?android:attr/textAppearanceMedium"
118                     android:layout_height="wrap_content"
119                     android:layout_width="wrap_content"
120                     android:maxLines="1" />
121
122             </LinearLayout>
123             <LinearLayout
124                 android:layout_width="fill_parent"
125                 android:layout_height="wrap_content"
126                 android:orientation="horizontal"
127                 android:baselineAligned="true"
128                 android:paddingTop="-1dip">
129                 <TextView
130                     android:id="@+id/application_size_prefix"
131                     android:text="@string/application_size_label"
132                     android:textAppearance="?android:attr/textAppearanceMedium"
133                     android:layout_height="wrap_content"
134                     android:layout_width="wrap_content"
135                     android:maxLines="1"
136                     android:paddingTop="6dip"
137                     android:paddingLeft="6dip"/>
138                 <ImageView
139                     android:id="@+id/info_size_dots"
140                     android:src="@drawable/dotted_line_480px"
141                     android:layout_width="0dip"
142                     android:layout_weight="1"
143                     android:layout_height="1px"
144                     android:layout_gravity="bottom"
145                     android:layout_marginLeft="1dip"
146                     android:layout_marginRight="1dip"
147                     android:layout_marginBottom="4dip"
148                     android:scaleType="center" />
149                 <TextView
150                     android:id="@+id/application_size_text"
151                     android:textAppearance="?android:attr/textAppearanceMedium"
152                     android:paddingTop="6dip"
153                     android:paddingRight="6dip"
154                     android:layout_height="wrap_content"
155                     android:layout_width="wrap_content"
156                     android:maxLines="1" />
157
158             </LinearLayout>
159             <LinearLayout
160                 android:id="@+id/info_size"
161                 android:layout_width="fill_parent"
162                 android:layout_height="wrap_content"
163                 android:orientation="horizontal"
164                 android:baselineAligned="true"
165                 android:paddingTop="-1dip">
166                 <TextView
167                     android:id="@+id/data_size_prefix"
168                     android:text="@string/data_size_label"
169                     android:textAppearance="?android:attr/textAppearanceMedium"
170                     android:layout_height="wrap_content"
171                     android:layout_width="wrap_content"
172                     android:maxLines="1"
173                     android:paddingTop="6dip"
174                     android:paddingLeft="6dip"/>
175                 <ImageView
176                     android:id="@+id/info_size_dots"
177                     android:src="@drawable/dotted_line_480px"
178                     android:layout_width="0dip"
179                     android:layout_weight="1"
180                     android:layout_height="1px"
181                     android:layout_gravity="bottom"
182                     android:layout_marginLeft="1dip"
183                     android:layout_marginRight="1dip"
184                     android:layout_marginBottom="4dip"
185                     android:scaleType="center" />
186                 <TextView
187                     android:id="@+id/data_size_text"
188                     android:textAppearance="?android:attr/textAppearanceMedium"
189                     android:paddingTop="6dip"
190                     android:paddingRight="6dip"
191                     android:layout_height="wrap_content"
192                     android:layout_width="wrap_content"
193                     android:maxLines="1" />
194
195             </LinearLayout>
196             <!-- Manage space, Clear data/Uninstall buttons  -->
197             <LinearLayout
198                 android:layout_width="fill_parent"
199                 android:layout_height="wrap_content"
200                 android:gravity="bottom"
201                 android:orientation="horizontal">
202                 <Button
203                     android:id="@+id/manage_space_button"
204                     android:text="@string/manage_space_text"
205                     android:visibility="invisible"
206                     android:layout_width="150dip"
207                     android:paddingLeft="6dip"
208                     android:layout_gravity="left"
209                     android:layout_weight="0.4"
210                     android:layout_height="wrap_content"/>
211                 <!-- Spacer -->
212                 <View
213                     android:id="@+id/buttons_spacer_left"
214                     android:layout_width="0dip"
215                     android:layout_height="wrap_content"
216                     android:layout_weight="0.2"
217                     android:visibility="gone" />
218  
219                 <Button
220                     android:id="@+id/uninstall_button"
221                     android:layout_width="150dip"
222                     android:paddingRight="6dip"
223                     android:layout_gravity="right"
224                     android:layout_weight="0.4"
225                     android:layout_height="wrap_content"/>
226             </LinearLayout>
227         </LinearLayout>
228
229         <!-- Clear cache section -->
230         <RelativeLayout
231             android:id="@+id/cache_panel"
232             android:layout_width="fill_parent"
233             android:layout_height="wrap_content" >
234             <TextView
235                 android:id="@+id/cache_header"
236                 style="?android:attr/listSeparatorTextViewStyle"
237                 android:text="@string/cache_header_label" />
238             <LinearLayout
239                 android:id="@+id/cache_size"
240                 android:layout_width="fill_parent"
241                 android:layout_height="wrap_content"
242                 android:orientation="horizontal"
243                 android:baselineAligned="true"
244                 android:layout_below="@id/cache_header"
245                 android:paddingTop="-1dip">
246                 <TextView
247                     android:text="@string/cache_size_label"
248                     android:layout_height="wrap_content"
249                     android:layout_width="wrap_content"
250                     android:maxLines="1"
251                     android:textAppearance="?android:attr/textAppearanceMedium"
252                     android:paddingTop="6dip"
253                     android:gravity="center_vertical"
254                     android:paddingLeft="6dip"/>
255                 <ImageView
256                     android:src="@drawable/dotted_line_480px"
257                     android:layout_width="0dip"
258                     android:layout_weight="1"
259                     android:layout_height="1px"
260                     android:layout_gravity="bottom"
261                     android:layout_marginLeft="1dip"
262                     android:layout_marginRight="1dip"
263                     android:layout_marginBottom="4dip"
264                     android:scaleType="center" />
265                 <TextView
266                     android:id="@+id/cache_size_text"
267                     android:textAppearance="?android:attr/textAppearanceMedium"
268                     android:paddingTop="6dip"
269                     android:paddingRight="6dip"
270                     android:layout_height="wrap_content"
271                     android:layout_width="wrap_content"
272                     android:maxLines="1" />
273             </LinearLayout>
274
275             <Button android:id="@+id/clear_cache_button"
276                 android:layout_alignParentRight="true"
277                 android:layout_below="@id/cache_size"
278                 android:layout_centerHorizontal="true"
279                 android:layout_width="150dip"
280                 android:text="@string/clear_cache_btn_text"
281                 android:layout_height="wrap_content" />
282         </RelativeLayout>
283
284         <!-- Prefered activities section -->
285         <TextView
286             style="?android:attr/listSeparatorTextViewStyle"
287             android:text="@string/auto_launch_label" />
288
289         <RelativeLayout 
290             android:layout_width="fill_parent"
291             android:layout_height="wrap_content"
292             android:layout_gravity="center_vertical">
293             <TextView android:id="@+id/auto_launch"
294                 android:textAppearance="?android:attr/textAppearanceSmall"
295                 android:layout_alignParentLeft="true"
296                 android:layout_width="fill_parent"
297                 android:layout_height="wrap_content"
298                 android:paddingTop="6dip"
299                 android:paddingRight="6dip"
300                 android:paddingLeft="6dip" />
301             <Button android:id="@+id/clear_activities_button"
302                 android:layout_alignParentRight="true"
303                 android:layout_below="@id/auto_launch"
304                 android:layout_centerHorizontal="true"
305                 android:layout_width="150dip"
306                 android:text="@string/clear_activities"
307                  android:layout_height="wrap_content" />
308         </RelativeLayout>
309
310         <!-- Other controls section -->
311         <TextView
312             style="?android:attr/listSeparatorTextViewStyle"
313             android:text="@string/controls_label" />
314
315         <RelativeLayout
316             android:layout_width="fill_parent"
317             android:layout_height="wrap_content"
318             android:layout_gravity="center_vertical">
319             <Button android:id="@+id/force_stop_button"
320                 android:layout_alignParentRight="true"
321                 android:layout_alignParentTop="true"
322                 android:layout_centerHorizontal="true"
323                 android:layout_width="150dip"
324                 android:text="@string/force_stop"
325                 android:layout_height="wrap_content" />
326         </RelativeLayout>
327
328         <!-- Permissions section -->
329         <LinearLayout
330             android:id="@+id/permissions_section"
331             android:layout_width="fill_parent"
332             android:layout_height="fill_parent"
333             android:orientation="vertical">
334             <TextView
335                 style="?android:attr/listSeparatorTextViewStyle"
336                 android:text="@string/permissions_label" />
337             <TextView
338                 android:text="@string/security_settings_desc"
339                 android:textAppearance="?android:attr/textAppearanceSmall"
340                 android:paddingTop="6dip"
341                 android:paddingLeft="6dip"
342                 android:paddingBottom="6dip"
343                 android:layout_width="fill_parent"
344                 android:layout_height="wrap_content" />
345             <LinearLayout
346                 android:id="@+id/security_settings_list"
347                 android:layout_width="fill_parent"
348                 android:layout_height="fill_parent"
349                 android:orientation="vertical"/>
350         </LinearLayout>
351     </LinearLayout>
352 </ScrollView>
353