1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <!-- 18 19 Defines the layout of the confirmation screen that gets displayed when an 20 application is about to be uninstalled. Includes ok and cancel buttons 21 to let the uinstallation continue or abort. 22 --> 23 24 <LinearLayout 25 xmlns:android="http://schemas.android.com/apk/res/android" 26 android:orientation="vertical" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent"> 29 30 <LinearLayout 31 android:layout_weight="1" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_alignParentTop="true" 35 android:orientation="vertical" 36 android:paddingBottom="8dip"> 37 38 <!-- If an activity was specified, explains what package it's in. --> 39 <TextView 40 android:id="@+id/activity_text" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:textColor="?android:attr/textColorSecondary" 44 android:textAppearance="?android:attr/textAppearanceMedium" 45 style="@style/padded" 46 android:visibility="gone" /> 47 48 <!-- The snippet (title & icon) about the application being uninstalled. --> 49 <include 50 layout="@layout/app_details" 51 android:id="@+id/uninstall_activity_snippet" /> 52 53 <!-- uninstall application confirmation text --> 54 <TextView 55 android:id="@+id/uninstall_confirm" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textColor="?android:attr/textColorSecondary" 59 android:textAppearance="?android:attr/textAppearanceMedium" 60 android:paddingStart="24dip" 61 android:paddingEnd="24dip" /> 62 63 </LinearLayout> 64 65 <!-- OK confirm and cancel buttons. --> 66 <LinearLayout 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:orientation="vertical" 70 android:divider="?android:attr/dividerHorizontal" 71 android:showDividers="beginning" 72 android:paddingTop="16dip"> 73 74 <LinearLayout 75 style="?android:attr/buttonBarStyle" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:orientation="horizontal" 79 android:measureWithLargestChild="true"> 80 81 <LinearLayout android:id="@+id/leftSpacer" 82 android:layout_weight="0.25" 83 android:layout_width="0dip" 84 android:layout_height="wrap_content" 85 android:orientation="horizontal" 86 android:visibility="gone" /> 87 88 <Button android:id="@+id/cancel_button" 89 android:layout_width="0dip" 90 android:layout_height="wrap_content" 91 android:layout_gravity="start" 92 android:layout_weight="1" 93 android:text="@string/cancel" 94 android:maxLines="2" 95 style="?android:attr/buttonBarButtonStyle" /> 96 97 <Button android:id="@+id/ok_button" 98 android:layout_width="0dip" 99 android:layout_height="wrap_content" 100 android:layout_gravity="end" 101 android:layout_weight="1" 102 android:text="@string/ok" 103 android:maxLines="2" 104 style="?android:attr/buttonBarButtonStyle" /> 105 106 <LinearLayout android:id="@+id/rightSpacer" 107 android:layout_width="0dip" 108 android:layout_weight="0.25" 109 android:layout_height="wrap_content" 110 android:orientation="horizontal" 111 android:visibility="gone" /> 112 113 </LinearLayout> 114 </LinearLayout> 115 </LinearLayout> 116