OSDN Git Service

Merge commit 'remotes/korg/cupcake' into merge
[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         <include
32             layout="@layout/manage_applications_item"
33             android:id="@+id/app_snippet"/>
34
35         <TextView
36             style="?android:attr/listSeparatorTextViewStyle"
37             android:text="@string/storage_label" />
38
39         <LinearLayout
40             android:layout_width="fill_parent"
41             android:layout_height="wrap_content"
42             android:paddingLeft="6dip"
43             android:orientation="vertical">
44             <LinearLayout
45                 android:layout_width="fill_parent"
46                 android:layout_height="wrap_content"
47                 android:orientation="horizontal"
48                 android:baselineAligned="true"
49                 android:paddingTop="-1dip">
50                 <TextView
51                     android:id="@+id/total_size_prefix"
52                     android:text="@string/total_size_label"
53                     android:textAppearance="?android:attr/textAppearanceMedium"
54                     android:layout_height="wrap_content"
55                     android:layout_width="wrap_content"
56                     android:maxLines="1"
57                     android:paddingTop="6dip"
58                     android:paddingLeft="6dip"/>
59
60                 <ImageView
61                     android:id="@+id/info_size_dots"
62                     android:src="@drawable/dotted_line_480px"
63                     android:layout_width="0dip"
64                     android:layout_weight="1"
65                     android:layout_height="1px"
66                     android:layout_gravity="bottom"
67                     android:layout_marginLeft="1dip"
68                     android:layout_marginRight="1dip"
69                     android:layout_marginBottom="4dip"
70                     android:scaleType="center" />
71                 <TextView
72                     android:id="@+id/total_size_text"
73                     android:paddingTop="6dip"
74                     android:paddingRight="6dip"
75                     android:textAppearance="?android:attr/textAppearanceMedium"
76                     android:layout_height="wrap_content"
77                     android:layout_width="wrap_content"
78                     android:maxLines="1" />
79
80             </LinearLayout>
81             <LinearLayout
82                 android:layout_width="fill_parent"
83                 android:layout_height="wrap_content"
84                 android:orientation="horizontal"
85                 android:baselineAligned="true"
86                 android:paddingTop="-1dip">
87                 <TextView
88                     android:id="@+id/application_size_prefix"
89                     android:text="@string/application_size_label"
90                     android:textAppearance="?android:attr/textAppearanceMedium"
91                     android:layout_height="wrap_content"
92                     android:layout_width="wrap_content"
93                     android:maxLines="1"
94                     android:paddingTop="6dip"
95                     android:paddingLeft="6dip"/>
96                 <ImageView
97                     android:id="@+id/info_size_dots"
98                     android:src="@drawable/dotted_line_480px"
99                     android:layout_width="0dip"
100                     android:layout_weight="1"
101                     android:layout_height="1px"
102                     android:layout_gravity="bottom"
103                     android:layout_marginLeft="1dip"
104                     android:layout_marginRight="1dip"
105                     android:layout_marginBottom="4dip"
106                     android:scaleType="center" />
107                 <TextView
108                     android:id="@+id/application_size_text"
109                     android:textAppearance="?android:attr/textAppearanceMedium"
110                     android:paddingTop="6dip"
111                     android:paddingRight="6dip"
112                     android:layout_height="wrap_content"
113                     android:layout_width="wrap_content"
114                     android:maxLines="1" />
115
116             </LinearLayout>
117             <LinearLayout
118                 android:id="@+id/info_size"
119                 android:layout_width="fill_parent"
120                 android:layout_height="wrap_content"
121                 android:orientation="horizontal"
122                 android:baselineAligned="true"
123                 android:paddingTop="-1dip">
124                 <TextView
125                     android:id="@+id/data_size_prefix"
126                     android:text="@string/data_size_label"
127                     android:textAppearance="?android:attr/textAppearanceMedium"
128                     android:layout_height="wrap_content"
129                     android:layout_width="wrap_content"
130                     android:maxLines="1"
131                     android:paddingTop="6dip"
132                     android:paddingLeft="6dip"/>
133                 <ImageView
134                     android:id="@+id/info_size_dots"
135                     android:src="@drawable/dotted_line_480px"
136                     android:layout_width="0dip"
137                     android:layout_weight="1"
138                     android:layout_height="1px"
139                     android:layout_gravity="bottom"
140                     android:layout_marginLeft="1dip"
141                     android:layout_marginRight="1dip"
142                     android:layout_marginBottom="4dip"
143                     android:scaleType="center" />
144                 <TextView
145                     android:id="@+id/data_size_text"
146                     android:textAppearance="?android:attr/textAppearanceMedium"
147                     android:paddingTop="6dip"
148                     android:paddingRight="6dip"
149                     android:layout_height="wrap_content"
150                     android:layout_width="wrap_content"
151                     android:maxLines="1" />
152
153             </LinearLayout>
154             <!-- Manage space, Clear data/Uninstall buttons  -->
155             <LinearLayout
156                 android:layout_width="fill_parent"
157                 android:layout_height="wrap_content"
158                 android:gravity="bottom"
159                 android:orientation="horizontal">
160                 <Button
161                     android:id="@+id/manage_space_button"
162                     android:text="@string/manage_space_text"
163                     android:visibility="invisible"
164                     android:layout_width="150dip"
165                     android:paddingLeft="6dip"
166                     android:layout_gravity="left"
167                     android:layout_weight="0.4"
168                     android:layout_height="wrap_content"/>
169                 <!-- Spacer -->
170                 <View
171                     android:id="@+id/buttons_spacer_left"
172                     android:layout_width="0dip"
173                     android:layout_height="wrap_content"
174                     android:layout_weight="0.2"
175                     android:visibility="gone" />
176  
177                 <Button
178                     android:id="@+id/uninstall_button"
179                     android:layout_width="150dip"
180                     android:paddingRight="6dip"
181                     android:layout_gravity="right"
182                     android:layout_weight="0.4"
183                     android:layout_height="wrap_content"/>
184             </LinearLayout>
185         </LinearLayout>
186
187         <!-- Clear cache section -->
188         <RelativeLayout
189             android:id="@+id/cache_panel"
190             android:layout_width="fill_parent"
191             android:layout_height="wrap_content" >
192             <TextView
193                 android:id="@+id/cache_header"
194                 style="?android:attr/listSeparatorTextViewStyle"
195                 android:text="@string/cache_header_label" />
196             <LinearLayout
197                 android:id="@+id/cache_size"
198                 android:layout_width="fill_parent"
199                 android:layout_height="wrap_content"
200                 android:orientation="horizontal"
201                 android:baselineAligned="true"
202                 android:layout_below="@id/cache_header"
203                 android:paddingTop="-1dip">
204                 <TextView
205                     android:text="@string/cache_size_label"
206                     android:layout_height="wrap_content"
207                     android:layout_width="wrap_content"
208                     android:maxLines="1"
209                     android:textAppearance="?android:attr/textAppearanceMedium"
210                     android:paddingTop="6dip"
211                     android:gravity="center_vertical"
212                     android:paddingLeft="6dip"/>
213                 <ImageView
214                     android:src="@drawable/dotted_line_480px"
215                     android:layout_width="0dip"
216                     android:layout_weight="1"
217                     android:layout_height="1px"
218                     android:layout_gravity="bottom"
219                     android:layout_marginLeft="1dip"
220                     android:layout_marginRight="1dip"
221                     android:layout_marginBottom="4dip"
222                     android:scaleType="center" />
223                 <TextView
224                     android:id="@+id/cache_size_text"
225                     android:textAppearance="?android:attr/textAppearanceMedium"
226                     android:paddingTop="6dip"
227                     android:paddingRight="6dip"
228                     android:layout_height="wrap_content"
229                     android:layout_width="wrap_content"
230                     android:maxLines="1" />
231             </LinearLayout>
232
233             <Button android:id="@+id/clear_cache_button"
234                 android:layout_alignParentRight="true"
235                 android:layout_below="@id/cache_size"
236                 android:layout_centerHorizontal="true"
237                 android:layout_width="150dip"
238                 android:text="@string/clear_cache_btn_text"
239                 android:layout_height="wrap_content" />
240         </RelativeLayout>
241
242         <!-- Prefered activities section -->
243         <TextView
244             style="?android:attr/listSeparatorTextViewStyle"
245             android:text="@string/auto_launch_label" />
246
247         <RelativeLayout 
248             android:layout_width="fill_parent"
249             android:layout_height="wrap_content"
250             android:layout_gravity="center_vertical">
251             <TextView android:id="@+id/auto_launch"
252                 android:textAppearance="?android:attr/textAppearanceSmall"
253                 android:layout_alignParentLeft="true"
254                 android:layout_width="fill_parent"
255                 android:layout_height="wrap_content"
256                 android:paddingTop="6dip"
257                 android:paddingRight="6dip"
258                 android:paddingLeft="6dip" />
259             <Button android:id="@+id/clear_activities_button"
260                 android:layout_alignParentRight="true"
261                 android:layout_below="@id/auto_launch"
262                 android:layout_centerHorizontal="true"
263                 android:layout_width="150dip"
264                 android:text="@string/clear_activities"
265                  android:layout_height="wrap_content" />
266         </RelativeLayout>
267
268         <!-- Permissions section -->
269         <LinearLayout
270             android:id="@+id/permissions_section"
271             android:layout_width="fill_parent"
272             android:layout_height="fill_parent"
273             android:orientation="vertical">
274             <TextView
275                 style="?android:attr/listSeparatorTextViewStyle"
276                 android:text="@string/permissions_label" />
277             <TextView
278                 android:text="@string/security_settings_desc"
279                 android:textAppearance="?android:attr/textAppearanceSmall"
280                 android:paddingTop="6dip"
281                 android:paddingLeft="6dip"
282                 android:paddingBottom="6dip"
283                 android:layout_width="fill_parent"
284                 android:layout_height="wrap_content" />
285             <LinearLayout
286                 android:id="@+id/security_settings_list"
287                 android:layout_width="fill_parent"
288                 android:layout_height="fill_parent"
289                 android:orientation="vertical"/>
290         </LinearLayout>
291
292         <!-- Prefered activities section -->
293         <TextView
294             style="?android:attr/listSeparatorTextViewStyle"
295             android:text="@string/controls_label" />
296
297         <RelativeLayout
298             android:layout_width="fill_parent"
299             android:layout_height="wrap_content"
300             android:layout_gravity="center_vertical">
301             <Button android:id="@+id/force_stop_button"
302                 android:layout_alignParentRight="true"
303                 android:layout_alignParentTop="true"
304                 android:layout_centerHorizontal="true"
305                 android:layout_width="150dip"
306                 android:text="@string/force_stop"
307                 android:layout_height="wrap_content" />
308         </RelativeLayout>
309     </LinearLayout>
310 </ScrollView>
311