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 android:indeterminate="true" /> 70 71 </LinearLayout> 72 73 <TextView 74 android:id="@+id/install_confirm_question" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 style="@android:style/TextAppearance.Material.Subhead" 78 android:text="@string/install_confirm_question" 79 android:visibility="invisible" /> 80 81 <TextView 82 android:id="@+id/install_confirm_question_update" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 style="@android:style/TextAppearance.Material.Subhead" 86 android:text="@string/install_confirm_question_update" 87 android:visibility="invisible" /> 88 89 <TextView 90 android:id="@+id/install_success" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 style="@android:style/TextAppearance.Material.Subhead" 94 android:text="@string/install_done" 95 android:visibility="invisible" /> 96 97 <TextView 98 android:id="@+id/install_failed" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 style="@android:style/TextAppearance.Material.Subhead" 102 android:text="@string/install_failed" 103 android:visibility="invisible" /> 104 105 <TextView 106 android:id="@+id/install_failed_blocked" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 style="@android:style/TextAppearance.Material.Subhead" 110 android:text="@string/install_failed_blocked" 111 android:visibility="invisible" /> 112 113 <TextView 114 android:id="@+id/install_failed_conflict" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 style="@android:style/TextAppearance.Material.Subhead" 118 android:text="@string/install_failed_conflict" 119 android:visibility="invisible" /> 120 121 <TextView 122 android:id="@+id/install_failed_incompatible" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 style="@android:style/TextAppearance.Material.Subhead" 126 android:text="@string/install_failed_incompatible" 127 android:visibility="invisible" /> 128 129 <TextView 130 android:id="@+id/install_failed_invalid_apk" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 style="@android:style/TextAppearance.Material.Subhead" 134 android:text="@string/install_failed_invalid_apk" 135 android:visibility="invisible" /> 136 137</FrameLayout> 138