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:paddingTop="8dip" 37 android:paddingBottom="8dip"> 38 39 <!-- If an activity was specified, explains what package it's in. --> 40 <TextView 41 android:id="@+id/activity_text" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:textColor="?android:attr/textColorSecondary" 45 android:textAppearance="?android:attr/textAppearanceMedium" 46 style="@style/padded" 47 android:visibility="gone" /> 48 49 <!-- The snippet (title & icon) about the application being uninstalled. --> 50 <include 51 layout="@layout/app_details" 52 android:id="@+id/uninstall_activity_snippet" /> 53 54 <!-- uninstall application confirmation text --> 55 <TextView 56 android:id="@+id/uninstall_confirm" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:textColor="?android:attr/textColorSecondary" 60 android:textAppearance="?android:attr/textAppearanceMedium" 61 android:paddingLeft="24dip" 62 android:paddingRight="24dip" /> 63 64 </LinearLayout> 65 66 <!-- OK confirm and cancel buttons. --> 67 <LinearLayout 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:orientation="vertical" 71 android:divider="?android:attr/dividerHorizontal" 72 android:showDividers="beginning" 73 android:paddingTop="16dip"> 74 75 <LinearLayout 76 style="?android:attr/buttonBarStyle" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:orientation="horizontal" 80 android:measureWithLargestChild="true"> 81 82 <LinearLayout android:id="@+id/leftSpacer" 83 android:layout_weight="0.25" 84 android:layout_width="0dip" 85 android:layout_height="wrap_content" 86 android:orientation="horizontal" 87 android:visibility="gone" /> 88 89 <Button android:id="@+id/cancel_button" 90 android:layout_width="0dip" 91 android:layout_height="wrap_content" 92 android:layout_gravity="left" 93 android:layout_weight="1" 94 android:text="@string/cancel" 95 android:maxLines="2" 96 style="?android:attr/buttonBarButtonStyle" /> 97 98 <Button android:id="@+id/ok_button" 99 android:layout_width="0dip" 100 android:layout_height="wrap_content" 101 android:layout_gravity="right" 102 android:layout_weight="1" 103 android:text="@string/ok" 104 android:maxLines="2" 105 style="?android:attr/buttonBarButtonStyle" /> 106 107 <LinearLayout android:id="@+id/rightSpacer" 108 android:layout_width="0dip" 109 android:layout_weight="0.25" 110 android:layout_height="wrap_content" 111 android:orientation="horizontal" 112 android:visibility="gone" /> 113 114 </LinearLayout> 115 </LinearLayout> 116 </LinearLayout> 117