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<LinearLayout 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 <include layout="@layout/app_details" 23 android:id="@+id/app_snippet"/> 24 25 <LinearLayout android:id="@+id/progress_view" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:layout_weight="1" 29 android:gravity="center" 30 android:orientation="vertical" 31 android:padding="16dp"> 32 33 <ImageView android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_marginBottom="12dp" 36 android:src="@drawable/ic_android_92" 37 android:tint="@color/bigIconColor" 38 android:contentDescription="@null" /> 39 40 <ProgressBar android:id="@+id/progress_bar" 41 android:layout_width="250dp" 42 android:layout_height="wrap_content" 43 android:indeterminate="true" 44 style="?android:attr/progressBarStyleHorizontal"> 45 </ProgressBar> 46 47 <TextView android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:gravity="center_horizontal" 50 android:text="@string/uninstalling" 51 android:textAppearance="?android:attr/textAppearanceMedium" /> 52 53 </LinearLayout> 54 55 <!-- Status view is shown after progress view is removed --> 56 <ScrollView android:id="@+id/status_view" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_weight="1" 60 android:visibility="gone" 61 android:padding="16dp"> 62 63 <TextView android:id="@+id/status_text" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:gravity="start" 67 android:textAppearance="?android:attr/textAppearanceMedium"/> 68 </ScrollView> 69 70 <LinearLayout android:id="@+id/ok_panel" 71 style="?android:attr/buttonBarStyle" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:orientation="horizontal" 75 android:measureWithLargestChild="true" 76 android:visibility="gone" 77 android:padding="8dip"> 78 79 <!-- spacer to push buttons to the right --> 80 <View android:layout_width="0dp" 81 android:layout_height="0dp" 82 android:layout_weight="1" /> 83 84 <Button android:id="@+id/device_manager_button" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:visibility="gone" 88 android:text="@string/manage_device_administrators" 89 android:maxLines="2" 90 style="?android:attr/buttonBarButtonStyle" /> 91 92 <Button android:id="@+id/users_button" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:visibility="gone" 96 android:text="@string/manage_users" 97 android:maxLines="2" 98 style="?android:attr/buttonBarButtonStyle" /> 99 100 <Button android:id="@+id/ok_button" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:text="@string/ok" 104 android:maxLines="2" 105 style="?android:attr/buttonBarButtonStyle" /> 106 107 </LinearLayout> 108 109</LinearLayout> 110