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:paddingStart="16dip"
44            android:paddingEnd="16dip"
45            android:textColor="?android:attr/textColorSecondary"
46            android:textAppearance="?android:attr/textAppearanceMedium"
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        <FrameLayout
55                android:id="@+id/top_divider"
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:paddingTop="4dip"
59                android:paddingStart="16dip"
60                android:paddingEnd="16dip" >
61            <ProgressBar
62                    android:id="@+id/progress_bar"
63                    style="?android:attr/progressBarStyleHorizontal"
64                    android:layout_width="match_parent"
65                    android:layout_height="wrap_content" />
66        </FrameLayout>
67
68        <!-- uninstall application confirmation text -->
69        <TextView
70            android:id="@+id/uninstall_confirm"
71            android:layout_width="wrap_content"
72            android:layout_height="wrap_content"
73            android:textColor="?android:attr/textColorSecondary"
74            android:textAppearance="?android:attr/textAppearanceMedium"
75            android:paddingStart="24dip"
76            android:paddingEnd="24dip" />
77
78    </LinearLayout>
79
80    <!-- OK confirm and cancel buttons.  -->
81    <LinearLayout
82            android:layout_width="match_parent"
83            android:layout_height="wrap_content"
84            android:orientation="vertical"
85            android:divider="?android:attr/dividerHorizontal"
86            android:showDividers="beginning"
87            android:paddingTop="16dip">
88
89        <LinearLayout
90                style="?android:attr/buttonBarStyle"
91                android:layout_width="match_parent"
92                android:layout_height="wrap_content"
93                android:orientation="horizontal"
94                android:measureWithLargestChild="true">
95
96            <LinearLayout android:id="@+id/leftSpacer"
97                android:layout_weight="0.25"
98                android:layout_width="0dip"
99                android:layout_height="wrap_content"
100                android:orientation="horizontal"
101                android:visibility="gone" />
102
103            <Button android:id="@+id/cancel_button"
104                android:layout_width="0dip"
105                android:layout_height="wrap_content"
106                android:layout_gravity="start"
107                android:layout_weight="1"
108                android:text="@string/cancel"
109                android:maxLines="2"
110                style="?android:attr/buttonBarButtonStyle" />
111
112            <Button android:id="@+id/ok_button"
113                android:layout_width="0dip"
114                android:layout_height="wrap_content"
115                android:layout_gravity="end"
116                android:layout_weight="1"
117                android:text="@string/ok"
118                android:maxLines="2"
119                style="?android:attr/buttonBarButtonStyle" />
120
121            <LinearLayout android:id="@+id/rightSpacer"
122                android:layout_width="0dip"
123                android:layout_weight="0.25"
124                android:layout_height="wrap_content"
125                android:orientation="horizontal"
126                android:visibility="gone" />
127
128        </LinearLayout>
129    </LinearLayout>
130</LinearLayout>
131