1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2008, The Android Open Source Project
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
10 ** http://www.apache.org/licenses/LICENSE-2.0
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.
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent">
24 android:id="@+id/all_details"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:paddingRight="6dip"
28 android:paddingTop="5dip"
29 android:paddingBottom="5dip"
30 android:orientation="vertical">
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:layout_gravity="center_vertical">
39 android:orientation="vertical"
40 android:layout_alignParentLeft="true"
41 android:layout_width="match_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" />
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" />
75 <!-- Force stop and uninstall buttons -->
77 layout="@layout/two_buttons_panel"
78 android:id="@+id/control_buttons_panel"/>
81 style="?android:attr/listSeparatorTextViewStyle"
82 android:text="@string/storage_label" />
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:paddingLeft="6dip"
88 android:orientation="vertical">
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:orientation="horizontal"
93 android:baselineAligned="true"
94 android:paddingTop="-1dip">
96 android:id="@+id/total_size_prefix"
97 android:text="@string/total_size_label"
98 android:textAppearance="?android:attr/textAppearanceMedium"
99 android:layout_height="wrap_content"
100 android:layout_width="wrap_content"
102 android:paddingTop="6dip"
103 android:paddingLeft="6dip"/>
106 android:id="@+id/info_size_dots"
107 android:src="@drawable/dotted_line_480px"
108 android:layout_width="0dip"
109 android:layout_weight="1"
110 android:layout_height="1px"
111 android:layout_gravity="bottom"
112 android:layout_marginLeft="1dip"
113 android:layout_marginRight="1dip"
114 android:layout_marginBottom="4dip"
115 android:scaleType="center" />
117 android:id="@+id/total_size_text"
118 android:paddingTop="6dip"
119 android:paddingRight="6dip"
120 android:textAppearance="?android:attr/textAppearanceMedium"
121 android:layout_height="wrap_content"
122 android:layout_width="wrap_content"
123 android:maxLines="1" />
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
129 android:orientation="horizontal"
130 android:baselineAligned="true"
131 android:paddingTop="-1dip">
133 android:id="@+id/application_size_prefix"
134 android:text="@string/application_size_label"
135 android:textAppearance="?android:attr/textAppearanceMedium"
136 android:layout_height="wrap_content"
137 android:layout_width="wrap_content"
139 android:paddingTop="6dip"
140 android:paddingLeft="6dip"/>
142 android:id="@+id/info_size_dots"
143 android:src="@drawable/dotted_line_480px"
144 android:layout_width="0dip"
145 android:layout_weight="1"
146 android:layout_height="1px"
147 android:layout_gravity="bottom"
148 android:layout_marginLeft="1dip"
149 android:layout_marginRight="1dip"
150 android:layout_marginBottom="4dip"
151 android:scaleType="center" />
153 android:id="@+id/application_size_text"
154 android:textAppearance="?android:attr/textAppearanceMedium"
155 android:paddingTop="6dip"
156 android:paddingRight="6dip"
157 android:layout_height="wrap_content"
158 android:layout_width="wrap_content"
159 android:maxLines="1" />
163 android:id="@+id/info_size"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:orientation="horizontal"
167 android:baselineAligned="true"
168 android:paddingTop="-1dip">
170 android:id="@+id/data_size_prefix"
171 android:text="@string/data_size_label"
172 android:textAppearance="?android:attr/textAppearanceMedium"
173 android:layout_height="wrap_content"
174 android:layout_width="wrap_content"
176 android:paddingTop="6dip"
177 android:paddingLeft="6dip"/>
179 android:id="@+id/info_size_dots"
180 android:src="@drawable/dotted_line_480px"
181 android:layout_width="0dip"
182 android:layout_weight="1"
183 android:layout_height="1px"
184 android:layout_gravity="bottom"
185 android:layout_marginLeft="1dip"
186 android:layout_marginRight="1dip"
187 android:layout_marginBottom="4dip"
188 android:scaleType="center" />
190 android:id="@+id/data_size_text"
191 android:textAppearance="?android:attr/textAppearanceMedium"
192 android:paddingTop="6dip"
193 android:paddingRight="6dip"
194 android:layout_height="wrap_content"
195 android:layout_width="wrap_content"
196 android:maxLines="1" />
199 <!-- Clear data and install location buttons -->
201 layout="@layout/two_buttons_panel"
202 android:id="@+id/data_buttons_panel"/>
206 <!-- Clear cache section -->
208 android:id="@+id/cache_panel"
209 android:layout_width="match_parent"
210 android:layout_height="wrap_content" >
212 android:id="@+id/cache_header"
213 style="?android:attr/listSeparatorTextViewStyle"
214 android:text="@string/cache_header_label" />
216 android:id="@+id/cache_size"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 android:orientation="horizontal"
220 android:baselineAligned="true"
221 android:layout_below="@id/cache_header"
222 android:paddingTop="-1dip">
224 android:text="@string/cache_size_label"
225 android:layout_height="wrap_content"
226 android:layout_width="wrap_content"
228 android:textAppearance="?android:attr/textAppearanceMedium"
229 android:paddingTop="6dip"
230 android:gravity="center_vertical"
231 android:paddingLeft="6dip"/>
233 android:src="@drawable/dotted_line_480px"
234 android:layout_width="0dip"
235 android:layout_weight="1"
236 android:layout_height="1px"
237 android:layout_gravity="bottom"
238 android:layout_marginLeft="1dip"
239 android:layout_marginRight="1dip"
240 android:layout_marginBottom="4dip"
241 android:scaleType="center" />
243 android:id="@+id/cache_size_text"
244 android:textAppearance="?android:attr/textAppearanceMedium"
245 android:paddingTop="6dip"
246 android:paddingRight="6dip"
247 android:layout_height="wrap_content"
248 android:layout_width="wrap_content"
249 android:maxLines="1" />
252 <Button android:id="@+id/clear_cache_button"
253 android:layout_alignParentRight="true"
254 android:layout_below="@id/cache_size"
255 android:layout_centerHorizontal="true"
256 android:layout_width="150dip"
257 android:text="@string/clear_cache_btn_text"
258 android:layout_height="wrap_content" />
261 <!-- Prefered activities section -->
263 style="?android:attr/listSeparatorTextViewStyle"
264 android:text="@string/auto_launch_label" />
267 android:layout_width="match_parent"
268 android:layout_height="wrap_content"
269 android:layout_gravity="center_vertical">
270 <TextView android:id="@+id/auto_launch"
271 android:textAppearance="?android:attr/textAppearanceSmall"
272 android:layout_alignParentLeft="true"
273 android:layout_width="match_parent"
274 android:layout_height="wrap_content"
275 android:paddingTop="6dip"
276 android:paddingRight="6dip"
277 android:paddingLeft="6dip" />
278 <Button android:id="@+id/clear_activities_button"
279 android:layout_alignParentRight="true"
280 android:layout_below="@id/auto_launch"
281 android:layout_centerHorizontal="true"
282 android:layout_width="150dip"
283 android:text="@string/clear_activities"
284 android:layout_height="wrap_content" />
287 <!-- Permissions section -->
289 android:id="@+id/permissions_section"
290 android:layout_width="match_parent"
291 android:layout_height="match_parent"
292 android:orientation="vertical">
294 style="?android:attr/listSeparatorTextViewStyle"
295 android:text="@string/permissions_label" />
297 android:text="@string/security_settings_desc"
298 android:textAppearance="?android:attr/textAppearanceSmall"
299 android:paddingTop="6dip"
300 android:paddingLeft="6dip"
301 android:paddingBottom="6dip"
302 android:layout_width="match_parent"
303 android:layout_height="wrap_content" />
305 android:id="@+id/security_settings_list"
306 android:layout_width="match_parent"
307 android:layout_height="match_parent"
308 android:orientation="vertical"/>