1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical"> 22 <androidx.appcompat.widget.Toolbar 23 android:id="@+id/toolbar" 24 android:layout_width="match_parent" 25 android:layout_height="?attr/actionBarSize" 26 android:background="?android:attr/colorBackground" 27 android:elevation="4dp" 28 android:theme="@style/ThemeOverlay.AppCompat.ActionBar"/> 29 <ImageButton 30 style="@style/Widget.AppCompat.ActionButton.Overflow" 31 android:id="@+id/more" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:gravity="center_horizontal" 35 android:layout_gravity="end" 36 android:visibility="gone" /> 37 <ScrollView 38 xmlns:android="http://schemas.android.com/apk/res/android" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content"> 41 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:orientation="vertical" 45 android:padding="20dip" 46 android:layout_gravity="center_horizontal"> 47 <ImageView 48 android:id="@+id/icon" 49 android:visibility="gone" 50 android:layout_width="@android:dimen/notification_large_icon_width" 51 android:layout_height="@android:dimen/notification_large_icon_height" 52 android:adjustViewBounds="true" 53 android:layout_gravity="center" 54 android:scaleType="fitCenter"/> 55 <TextView 56 android:id="@+id/prompt" 57 android:visibility="gone" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:textAppearance="?android:attr/textAppearanceMedium" 61 android:textColor="?android:attr/textColorPrimary" 62 android:paddingBottom="30dip" /> 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content"> 66 <LinearLayout 67 android:id="@+id/normal_layout" 68 android:visibility="visible" 69 android:orientation="vertical" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content"> 72 <com.google.android.material.textfield.TextInputLayout 73 android:id="@+id/text_input_layout" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:layout_marginBottom="16dip" 77 android:orientation="vertical"> 78 <com.google.android.material.textfield.TextInputEditText 79 android:id="@+id/in_text" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content"/> 82 </com.google.android.material.textfield.TextInputLayout> 83 <LinearLayout 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:gravity="end" 87 android:layout_marginStart="4dip" 88 android:layout_marginBottom="16dip" 89 android:orientation="horizontal"> 90 <Button 91 android:id="@+id/button_cancel" 92 android:layout_height="48dip" 93 android:layout_width="wrap_content" 94 android:layout_weight="1" 95 android:gravity="center_vertical" 96 android:paddingStart="0dip" 97 style="@style/Widget.AppCompat.Button.Borderless.Colored" 98 android:text="@string/button_cancel" /> 99 <Button 100 android:id="@+id/button_ok" 101 android:layout_height="48dip" 102 android:layout_width="wrap_content" 103 style="@style/Widget.AppCompat.Button.Colored" 104 android:text="@string/button_ok" /> 105 </LinearLayout> 106 </LinearLayout> 107 <LinearLayout 108 android:id="@+id/yes_no_layout" 109 android:visibility="gone" 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content" 112 android:gravity="end" 113 android:orientation="horizontal"> 114 <Button 115 android:id="@+id/button_no" 116 android:layout_height="wrap_content" 117 android:layout_width="wrap_content" 118 style="@style/Widget.AppCompat.Button.Borderless.Colored" 119 android:text="@string/button_no" /> 120 <Button 121 android:id="@+id/button_yes" 122 android:layout_height="wrap_content" 123 android:layout_width="wrap_content" 124 style="@style/Widget.AppCompat.Button.Colored" 125 android:text="@string/button_yes" /> 126 </LinearLayout> 127 </LinearLayout> 128 </LinearLayout> 129 </ScrollView> 130</LinearLayout> 131