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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical"> 21 22 <!-- Button bar with OK button --> 23 <LinearLayout android:id="@+id/ok_panel" 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_alignParentBottom="true" 27 android:orientation="vertical" 28 android:divider="?android:attr/dividerHorizontal" 29 android:showDividers="beginning" 30 android:paddingTop="16dip"> 31 32 <LinearLayout 33 style="?android:attr/buttonBarStyle" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:orientation="horizontal" 37 android:measureWithLargestChild="true"> 38 39 <LinearLayout android:id="@+id/leftSpacer" 40 android:layout_weight="0.5" 41 android:layout_width="0dip" 42 android:layout_height="wrap_content" 43 android:orientation="horizontal" 44 android:visibility="gone" /> 45 46 <Button android:id="@+id/ok_button" 47 android:layout_width="0dip" 48 android:layout_height="wrap_content" 49 android:layout_gravity="center_horizontal" 50 android:layout_weight="1" 51 android:text="@string/ok" 52 android:maxLines="2" 53 style="?android:attr/buttonBarButtonStyle" /> 54 55 <LinearLayout android:id="@+id/rightSpacer" 56 android:layout_width="0dip" 57 android:layout_weight="0.5" 58 android:layout_height="wrap_content" 59 android:orientation="horizontal" 60 android:visibility="gone" /> 61 62 </LinearLayout> 63 </LinearLayout> 64 65 <include 66 layout="@layout/app_details" 67 android:id="@+id/app_snippet" 68 android:layout_height="wrap_content" 69 android:layout_width="match_parent" 70 android:layout_alignParentTop="true" /> 71 72 <LinearLayout 73 android:id="@+id/uninstall_holder" 74 android:layout_width="match_parent" 75 android:layout_height="match_parent" 76 android:layout_above="@id/ok_panel" 77 android:layout_below="@id/app_snippet" 78 android:orientation="vertical"> 79 80 <ScrollView 81 android:id="@+id/uninstalling_scrollview" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:layout_alignParentTop="true" 85 android:paddingStart="24dip" 86 android:paddingEnd="24dip" 87 android:paddingTop="8dip" 88 android:paddingBottom="8dip" 89 android:fillViewport="false"> 90 91 <TextView 92 android:id="@+id/center_text" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:gravity="start" 96 android:text="@string/uninstalling" 97 android:textAppearance="?android:attr/textAppearanceMedium"/> 98 </ScrollView> 99 100 <Button android:id="@+id/device_manager_button" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:layout_gravity="center_horizontal" 104 android:visibility="gone" 105 android:maxLines="2" 106 android:text="@string/manage_device_administrators" /> 107 108 </LinearLayout> 109 110 </RelativeLayout> 111