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="match_parent" 22 android:layout_height="match_parent"> 23 <LinearLayout 24 android:id="@+id/all_details" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:paddingRight="6dip" 28 android:paddingBottom="5dip" 29 android:orientation="vertical"> 30 31 <!-- App snippet with buttons --> 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:layout_gravity="center_vertical" 36 android:orientation="vertical" 37 android:paddingRight="6dip" 38 android:paddingLeft="6dip" 39 android:paddingTop="5dip" 40 android:paddingBottom="5dip" > 41 42 <!-- Application snippet label, version and icon --> 43 <include 44 layout="@layout/manage_applications_item" 45 android:id="@+id/app_snippet"/> 46 47 <!-- Force stop and uninstall buttons --> 48 <include 49 layout="@layout/two_buttons_panel" 50 android:id="@+id/control_buttons_panel"/> 51 </LinearLayout> 52 53 <TextView 54 style="?android:attr/listSeparatorTextViewStyle" 55 android:layout_marginTop="8dip" 56 android:text="@string/storage_label" /> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:paddingLeft="6dip" 62 android:orientation="vertical"> 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:orientation="horizontal" 67 android:baselineAligned="true" 68 android:paddingTop="-1dip"> 69 <TextView 70 android:id="@+id/total_size_prefix" 71 android:text="@string/total_size_label" 72 android:textAppearance="?android:attr/textAppearanceMedium" 73 android:layout_height="wrap_content" 74 android:layout_width="wrap_content" 75 android:maxLines="1" 76 android:paddingTop="6dip" 77 android:paddingLeft="6dip"/> 78 79 <ImageView 80 android:id="@+id/info_size_dots" 81 android:src="@drawable/dotted_line_480px" 82 android:layout_width="0dip" 83 android:layout_weight="1" 84 android:layout_height="1px" 85 android:layout_gravity="bottom" 86 android:layout_marginLeft="1dip" 87 android:layout_marginRight="1dip" 88 android:layout_marginBottom="4dip" 89 android:scaleType="center" /> 90 <TextView 91 android:id="@+id/total_size_text" 92 android:paddingTop="6dip" 93 android:paddingRight="6dip" 94 android:textAppearance="?android:attr/textAppearanceMedium" 95 android:layout_height="wrap_content" 96 android:layout_width="wrap_content" 97 android:maxLines="1" /> 98 99 </LinearLayout> 100 <LinearLayout 101 android:layout_width="match_parent" 102 android:layout_height="wrap_content" 103 android:orientation="horizontal" 104 android:baselineAligned="true" 105 android:paddingTop="-1dip"> 106 <TextView 107 android:id="@+id/application_size_prefix" 108 android:text="@string/application_size_label" 109 android:textAppearance="?android:attr/textAppearanceMedium" 110 android:layout_height="wrap_content" 111 android:layout_width="wrap_content" 112 android:maxLines="1" 113 android:paddingTop="6dip" 114 android:paddingLeft="6dip"/> 115 <ImageView 116 android:id="@+id/info_size_dots" 117 android:src="@drawable/dotted_line_480px" 118 android:layout_width="0dip" 119 android:layout_weight="1" 120 android:layout_height="1px" 121 android:layout_gravity="bottom" 122 android:layout_marginLeft="1dip" 123 android:layout_marginRight="1dip" 124 android:layout_marginBottom="4dip" 125 android:scaleType="center" /> 126 <TextView 127 android:id="@+id/application_size_text" 128 android:textAppearance="?android:attr/textAppearanceMedium" 129 android:paddingTop="6dip" 130 android:paddingRight="6dip" 131 android:layout_height="wrap_content" 132 android:layout_width="wrap_content" 133 android:maxLines="1" /> 134 135 </LinearLayout> 136 137 <LinearLayout 138 android:layout_width="match_parent" 139 android:layout_height="wrap_content" 140 android:orientation="horizontal" 141 android:baselineAligned="true" 142 android:paddingTop="-1dip"> 143 <TextView 144 android:id="@+id/external_code_size_prefix" 145 android:text="@string/external_code_size_label" 146 android:textAppearance="?android:attr/textAppearanceMedium" 147 android:layout_height="wrap_content" 148 android:layout_width="wrap_content" 149 android:maxLines="1" 150 android:paddingTop="6dip" 151 android:paddingLeft="6dip"/> 152 <ImageView 153 android:id="@+id/info_size_dots" 154 android:src="@drawable/dotted_line_480px" 155 android:layout_width="0dip" 156 android:layout_weight="1" 157 android:layout_height="1px" 158 android:layout_gravity="bottom" 159 android:layout_marginLeft="1dip" 160 android:layout_marginRight="1dip" 161 android:layout_marginBottom="4dip" 162 android:scaleType="center" /> 163 <TextView 164 android:id="@+id/external_code_size_text" 165 android:textAppearance="?android:attr/textAppearanceMedium" 166 android:paddingTop="6dip" 167 android:paddingRight="6dip" 168 android:layout_height="wrap_content" 169 android:layout_width="wrap_content" 170 android:maxLines="1" /> 171 172 </LinearLayout> 173 174 <LinearLayout 175 android:id="@+id/info_size" 176 android:layout_width="match_parent" 177 android:layout_height="wrap_content" 178 android:orientation="horizontal" 179 android:baselineAligned="true" 180 android:paddingTop="-1dip"> 181 <TextView 182 android:id="@+id/data_size_prefix" 183 android:text="@string/data_size_label" 184 android:textAppearance="?android:attr/textAppearanceMedium" 185 android:layout_height="wrap_content" 186 android:layout_width="wrap_content" 187 android:maxLines="1" 188 android:paddingTop="6dip" 189 android:paddingLeft="6dip"/> 190 <ImageView 191 android:id="@+id/info_size_dots" 192 android:src="@drawable/dotted_line_480px" 193 android:layout_width="0dip" 194 android:layout_weight="1" 195 android:layout_height="1px" 196 android:layout_gravity="bottom" 197 android:layout_marginLeft="1dip" 198 android:layout_marginRight="1dip" 199 android:layout_marginBottom="4dip" 200 android:scaleType="center" /> 201 <TextView 202 android:id="@+id/data_size_text" 203 android:textAppearance="?android:attr/textAppearanceMedium" 204 android:paddingTop="6dip" 205 android:paddingRight="6dip" 206 android:layout_height="wrap_content" 207 android:layout_width="wrap_content" 208 android:maxLines="1" /> 209 210 </LinearLayout> 211 212 <LinearLayout 213 android:layout_width="match_parent" 214 android:layout_height="wrap_content" 215 android:orientation="horizontal" 216 android:baselineAligned="true" 217 android:paddingTop="-1dip"> 218 <TextView 219 android:id="@+id/external_data_size_prefix" 220 android:text="@string/external_data_size_label" 221 android:textAppearance="?android:attr/textAppearanceMedium" 222 android:layout_height="wrap_content" 223 android:layout_width="wrap_content" 224 android:maxLines="1" 225 android:paddingTop="6dip" 226 android:paddingLeft="6dip"/> 227 <ImageView 228 android:id="@+id/info_size_dots" 229 android:src="@drawable/dotted_line_480px" 230 android:layout_width="0dip" 231 android:layout_weight="1" 232 android:layout_height="1px" 233 android:layout_gravity="bottom" 234 android:layout_marginLeft="1dip" 235 android:layout_marginRight="1dip" 236 android:layout_marginBottom="4dip" 237 android:scaleType="center" /> 238 <TextView 239 android:id="@+id/external_data_size_text" 240 android:textAppearance="?android:attr/textAppearanceMedium" 241 android:paddingTop="6dip" 242 android:paddingRight="6dip" 243 android:layout_height="wrap_content" 244 android:layout_width="wrap_content" 245 android:maxLines="1" /> 246 247 </LinearLayout> 248 249 <!-- Clear data and install location buttons --> 250 <include 251 layout="@layout/two_buttons_panel" 252 android:id="@+id/data_buttons_panel"/> 253 254 </LinearLayout> 255 256 <!-- Clear cache section --> 257 <RelativeLayout 258 android:id="@+id/cache_panel" 259 android:layout_width="match_parent" 260 android:layout_height="wrap_content" > 261 <TextView 262 android:id="@+id/cache_header" 263 style="?android:attr/listSeparatorTextViewStyle" 264 android:layout_marginTop="8dip" 265 android:text="@string/cache_header_label" /> 266 <LinearLayout 267 android:id="@+id/cache_size" 268 android:layout_width="match_parent" 269 android:layout_height="wrap_content" 270 android:orientation="horizontal" 271 android:baselineAligned="true" 272 android:layout_below="@id/cache_header" 273 android:paddingTop="-1dip"> 274 <TextView 275 android:text="@string/cache_size_label" 276 android:layout_height="wrap_content" 277 android:layout_width="wrap_content" 278 android:maxLines="1" 279 android:textAppearance="?android:attr/textAppearanceMedium" 280 android:paddingTop="6dip" 281 android:gravity="center_vertical" 282 android:paddingLeft="6dip"/> 283 <ImageView 284 android:src="@drawable/dotted_line_480px" 285 android:layout_width="0dip" 286 android:layout_weight="1" 287 android:layout_height="1px" 288 android:layout_gravity="bottom" 289 android:layout_marginLeft="1dip" 290 android:layout_marginRight="1dip" 291 android:layout_marginBottom="4dip" 292 android:scaleType="center" /> 293 <TextView 294 android:id="@+id/cache_size_text" 295 android:textAppearance="?android:attr/textAppearanceMedium" 296 android:paddingTop="6dip" 297 android:paddingRight="6dip" 298 android:layout_height="wrap_content" 299 android:layout_width="wrap_content" 300 android:maxLines="1" /> 301 </LinearLayout> 302 303 <Button android:id="@+id/clear_cache_button" 304 android:layout_alignParentRight="true" 305 android:layout_below="@id/cache_size" 306 android:layout_centerHorizontal="true" 307 android:layout_width="200dip" 308 android:text="@string/clear_cache_btn_text" 309 android:layout_height="wrap_content" /> 310 </RelativeLayout> 311 312 <!-- Prefered activities section --> 313 <TextView 314 style="?android:attr/listSeparatorTextViewStyle" 315 android:layout_marginTop="8dip" 316 android:text="@string/auto_launch_label" /> 317 318 <RelativeLayout 319 android:layout_width="match_parent" 320 android:layout_height="wrap_content" 321 android:layout_gravity="center_vertical"> 322 <TextView android:id="@+id/auto_launch" 323 android:textAppearance="?android:attr/textAppearanceSmall" 324 android:layout_alignParentLeft="true" 325 android:layout_width="match_parent" 326 android:layout_height="wrap_content" 327 android:paddingTop="6dip" 328 android:paddingRight="6dip" 329 android:paddingLeft="6dip" /> 330 <Button android:id="@+id/clear_activities_button" 331 android:layout_alignParentRight="true" 332 android:layout_below="@id/auto_launch" 333 android:layout_centerHorizontal="true" 334 android:layout_width="200dip" 335 android:text="@string/clear_activities" 336 android:layout_height="wrap_content" /> 337 </RelativeLayout> 338 339 <!-- Screen compatibility section --> 340 <LinearLayout android:id="@+id/screen_compatibility_section" 341 android:layout_width="match_parent" 342 android:layout_height="wrap_content" 343 android:orientation="vertical"> 344 <TextView 345 style="?android:attr/listSeparatorTextViewStyle" 346 android:layout_marginTop="8dip" 347 android:text="@string/screen_compatibility_label" /> 348 349 <TextView android:textAppearance="?android:attr/textAppearanceSmall" 350 android:layout_alignParentLeft="true" 351 android:layout_width="match_parent" 352 android:layout_height="wrap_content" 353 android:paddingTop="6dip" 354 android:paddingRight="6dip" 355 android:paddingLeft="6dip" 356 android:text="@string/screen_compatibility_text"/> 357 <CheckBox android:id="@+id/ask_compatibility_cb" 358 android:layout_width="wrap_content" 359 android:layout_height="wrap_content" 360 android:layout_marginLeft="12dip" 361 android:layout_gravity="left" 362 android:text="@string/ask_compatibility" /> 363 <CheckBox android:id="@+id/enable_compatibility_cb" 364 android:layout_width="wrap_content" 365 android:layout_height="wrap_content" 366 android:layout_marginLeft="12dip" 367 android:layout_gravity="left" 368 android:text="@string/enable_compatibility" /> 369 </LinearLayout> 370 371 <!-- Permissions section --> 372 <LinearLayout 373 android:id="@+id/permissions_section" 374 android:layout_width="match_parent" 375 android:layout_height="match_parent" 376 android:orientation="vertical"> 377 <TextView 378 style="?android:attr/listSeparatorTextViewStyle" 379 android:layout_marginTop="8dip" 380 android:text="@string/permissions_label" /> 381 <TextView 382 android:text="@string/security_settings_desc" 383 android:textAppearance="?android:attr/textAppearanceSmall" 384 android:paddingTop="6dip" 385 android:paddingLeft="6dip" 386 android:paddingBottom="6dip" 387 android:layout_width="match_parent" 388 android:layout_height="wrap_content" /> 389 <LinearLayout 390 android:id="@+id/security_settings_list" 391 android:layout_width="match_parent" 392 android:layout_height="match_parent" 393 android:orientation="vertical"/> 394 </LinearLayout> 395 </LinearLayout> 396 </ScrollView> 397 398