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 <ImageButton 23 style="@android:style/Widget.Material.ActionButton.Overflow" 24 android:id="@+id/more" 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:gravity="center_horizontal" 28 android:layout_gravity="end" 29 android:visibility="gone" /> 30 <ScrollView 31 xmlns:android="http://schemas.android.com/apk/res/android" 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content"> 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:orientation="vertical" 38 android:padding="20dip" 39 android:layout_gravity="center_horizontal"> 40 <ImageView 41 android:id="@+id/icon" 42 android:visibility="gone" 43 android:layout_width="@android:dimen/notification_large_icon_width" 44 android:layout_height="@android:dimen/notification_large_icon_height" 45 android:adjustViewBounds="true" 46 android:layout_gravity="center" 47 android:scaleType="fitCenter"/> 48 <TextView 49 android:id="@+id/prompt" 50 android:visibility="gone" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:textAppearance="?android:attr/textAppearanceMedium" 54 android:textColor="?android:attr/textColorPrimary" 55 android:paddingBottom="30dip" /> 56 <LinearLayout 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content"> 59 <LinearLayout 60 android:id="@+id/normal_layout" 61 android:visibility="visible" 62 android:orientation="vertical" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content"> 65 <LinearLayout 66 android:id="@+id/input_restriction_info" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginLeft="4dip" 70 android:orientation="vertical"> 71 <TextView 72 android:id="@+id/input_type" 73 android:gravity="start" 74 android:textAppearance="?android:attr/textAppearanceMedium" 75 android:textColor="?android:attr/textColorSecondary" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" /> 78 <TextView 79 android:id="@+id/num_of_chars" 80 android:textAppearance="?android:attr/textAppearanceMedium" 81 android:textColor="?android:attr/textColorSecondary" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" /> 84 </LinearLayout> 85 <EditText 86 android:id="@+id/in_text" 87 android:layout_gravity="center_horizontal" 88 android:layout_marginBottom="16dip" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" /> 91 <LinearLayout 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content" 94 android:gravity="end" 95 android:layout_marginStart="4dip" 96 android:layout_marginBottom="16dip" 97 android:orientation="horizontal"> 98 <Button 99 android:id="@+id/button_cancel" 100 android:layout_height="48dip" 101 android:layout_width="wrap_content" 102 android:layout_weight="1" 103 android:gravity="center_vertical" 104 android:paddingStart="0dip" 105 style="@android:style/Widget.Material.Button.Borderless.Colored" 106 android:text="@string/button_cancel" /> 107 <Button 108 android:id="@+id/button_ok" 109 android:layout_height="48dip" 110 android:layout_width="wrap_content" 111 style="@android:style/Widget.Material.Button.Colored" 112 android:text="@string/button_ok" /> 113 </LinearLayout> 114 </LinearLayout> 115 <LinearLayout 116 android:id="@+id/yes_no_layout" 117 android:visibility="gone" 118 android:layout_width="match_parent" 119 android:layout_height="wrap_content" 120 android:gravity="end" 121 android:orientation="horizontal"> 122 <Button 123 android:id="@+id/button_no" 124 android:layout_height="wrap_content" 125 android:layout_width="wrap_content" 126 style="@android:style/Widget.Material.Button.Borderless.Colored" 127 android:text="@string/button_no" /> 128 <Button 129 android:id="@+id/button_yes" 130 android:layout_height="wrap_content" 131 android:layout_width="wrap_content" 132 style="@android:style/Widget.Material.Button.Colored" 133 android:text="@string/button_yes" /> 134 </LinearLayout> 135 </LinearLayout> 136 </LinearLayout> 137 </ScrollView> 138</LinearLayout> 139