1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2018 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<FrameLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:theme="?android:attr/alertDialogTheme"
23    android:paddingTop="8dp"
24    android:paddingLeft="?android:attr/dialogPreferredPadding"
25    android:paddingRight="?android:attr/dialogPreferredPadding">
26
27    <LinearLayout
28        android:id="@+id/staging"
29        android:layout_width="match_parent"
30        android:layout_height="wrap_content"
31        android:orientation="vertical"
32        android:visibility="invisible">
33
34        <TextView
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            style="@android:style/TextAppearance.Material.Subhead"
38            android:text="@string/message_staging" />
39
40        <ProgressBar
41            android:id="@+id/progress_indeterminate"
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:paddingTop="8dp"
45            style="?android:attr/progressBarStyleHorizontal"
46            android:indeterminate="true" />
47
48    </LinearLayout>
49
50    <LinearLayout
51        android:id="@+id/installing"
52        android:layout_width="match_parent"
53        android:layout_height="wrap_content"
54        android:orientation="vertical"
55        android:visibility="invisible">
56
57        <TextView
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            style="@android:style/TextAppearance.Material.Subhead"
61            android:text="@string/installing" />
62
63        <ProgressBar
64            android:id="@+id/progress"
65            android:layout_width="match_parent"
66            android:layout_height="wrap_content"
67            android:paddingTop="8dp"
68            style="?android:attr/progressBarStyleHorizontal" />
69
70    </LinearLayout>
71
72    <TextView
73        android:id="@+id/install_confirm_question"
74        android:layout_width="wrap_content"
75        android:layout_height="wrap_content"
76        style="@android:style/TextAppearance.Material.Subhead"
77        android:text="@string/install_confirm_question"
78        android:visibility="invisible" />
79
80    <TextView
81        android:id="@+id/install_confirm_question_update"
82        android:layout_width="wrap_content"
83        android:layout_height="wrap_content"
84        style="@android:style/TextAppearance.Material.Subhead"
85        android:text="@string/install_confirm_question_update"
86        android:visibility="invisible" />
87
88    <TextView
89        android:id="@+id/install_confirm_question_update_system"
90        android:layout_width="wrap_content"
91        android:layout_height="wrap_content"
92        style="@android:style/TextAppearance.Material.Subhead"
93        android:text="@string/install_confirm_question_update_system"
94        android:visibility="invisible" />
95
96    <TextView
97        android:id="@+id/install_success"
98        android:layout_width="wrap_content"
99        android:layout_height="wrap_content"
100        style="@android:style/TextAppearance.Material.Subhead"
101        android:text="@string/install_done"
102        android:visibility="invisible" />
103
104    <TextView
105        android:id="@+id/install_failed"
106        android:layout_width="wrap_content"
107        android:layout_height="wrap_content"
108        style="@android:style/TextAppearance.Material.Subhead"
109        android:text="@string/install_failed"
110        android:visibility="invisible" />
111
112    <TextView
113        android:id="@+id/install_failed_blocked"
114        android:layout_width="wrap_content"
115        android:layout_height="wrap_content"
116        style="@android:style/TextAppearance.Material.Subhead"
117        android:text="@string/install_failed_blocked"
118        android:visibility="invisible" />
119
120    <TextView
121        android:id="@+id/install_failed_conflict"
122        android:layout_width="wrap_content"
123        android:layout_height="wrap_content"
124        style="@android:style/TextAppearance.Material.Subhead"
125        android:text="@string/install_failed_conflict"
126        android:visibility="invisible" />
127
128    <TextView
129        android:id="@+id/install_failed_incompatible"
130        android:layout_width="wrap_content"
131        android:layout_height="wrap_content"
132        style="@android:style/TextAppearance.Material.Subhead"
133        android:text="@string/install_failed_incompatible"
134        android:visibility="invisible" />
135
136    <TextView
137        android:id="@+id/install_failed_invalid_apk"
138        android:layout_width="wrap_content"
139        android:layout_height="wrap_content"
140        style="@android:style/TextAppearance.Material.Subhead"
141        android:text="@string/install_failed_invalid_apk"
142        android:visibility="invisible" />
143
144</FrameLayout>
145