The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 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 |
Wink Saville | 79085fc | 2009-06-09 10:27:23 -0700 | [diff] [blame] | 7 | |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Wink Saville | 79085fc | 2009-06-09 10:27:23 -0700 | [diff] [blame] | 9 | |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 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 | |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 17 | <LinearLayout |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 3a6cabb | 2010-01-08 15:07:12 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
| 21 | android:orientation="vertical"> |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 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"/> |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 29 | <ImageButton |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 30 | style="@style/Widget.AppCompat.ActionButton.Overflow" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 31 | android:id="@+id/more" |
| 32 | android:layout_width="wrap_content" |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 33 | android:layout_height="wrap_content" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 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"> |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 41 | <LinearLayout |
Romain Guy | 3a6cabb | 2010-01-08 15:07:12 -0800 | [diff] [blame] | 42 | android:layout_width="match_parent" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 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" |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 57 | android:visibility="gone" |
Romain Guy | 3a6cabb | 2010-01-08 15:07:12 -0800 | [diff] [blame] | 58 | android:layout_width="match_parent" |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 59 | android:layout_height="wrap_content" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 60 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 61 | android:textColor="?android:attr/textColorPrimary" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 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" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 71 | android:layout_height="wrap_content"> |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 72 | <com.google.android.material.textfield.TextInputLayout |
| 73 | android:id="@+id/text_input_layout" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 74 | android:layout_width="match_parent" |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 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> |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 83 | <LinearLayout |
| 84 | android:layout_width="match_parent" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 85 | android:layout_height="wrap_content" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 86 | android:gravity="end" |
Kenji Soutome | 0da0cb8 | 2018-02-13 15:03:51 +0900 | [diff] [blame] | 87 | android:layout_marginStart="4dip" |
| 88 | android:layout_marginBottom="16dip" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 89 | android:orientation="horizontal"> |
| 90 | <Button |
| 91 | android:id="@+id/button_cancel" |
Kenji Soutome | 0da0cb8 | 2018-02-13 15:03:51 +0900 | [diff] [blame] | 92 | android:layout_height="48dip" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 93 | android:layout_width="wrap_content" |
Kenji Soutome | 0da0cb8 | 2018-02-13 15:03:51 +0900 | [diff] [blame] | 94 | android:layout_weight="1" |
| 95 | android:gravity="center_vertical" |
| 96 | android:paddingStart="0dip" |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 97 | style="@style/Widget.AppCompat.Button.Borderless.Colored" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 98 | android:text="@string/button_cancel" /> |
| 99 | <Button |
| 100 | android:id="@+id/button_ok" |
Kenji Soutome | 0da0cb8 | 2018-02-13 15:03:51 +0900 | [diff] [blame] | 101 | android:layout_height="48dip" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 102 | android:layout_width="wrap_content" |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 103 | style="@style/Widget.AppCompat.Button.Colored" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 104 | android:text="@string/button_ok" /> |
| 105 | </LinearLayout> |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 106 | </LinearLayout> |
| 107 | <LinearLayout |
| 108 | android:id="@+id/yes_no_layout" |
| 109 | android:visibility="gone" |
| 110 | android:layout_width="match_parent" |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 111 | android:layout_height="wrap_content" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 112 | android:gravity="end" |
| 113 | android:orientation="horizontal"> |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 114 | <Button |
| 115 | android:id="@+id/button_no" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 116 | android:layout_height="wrap_content" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 117 | android:layout_width="wrap_content" |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 118 | style="@style/Widget.AppCompat.Button.Borderless.Colored" |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 119 | android:text="@string/button_no" /> |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 120 | <Button |
| 121 | android:id="@+id/button_yes" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:layout_width="wrap_content" |
Yoshiaki Naka | c1efd35 | 2019-02-21 17:13:38 +0900 | [diff] [blame] | 124 | style="@style/Widget.AppCompat.Button.Colored" |
Takanori Nakano | 260df9a | 2017-12-05 22:26:30 +0900 | [diff] [blame] | 125 | android:text="@string/button_yes" /> |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 126 | </LinearLayout> |
The Android Open Source Project | 9d9730a | 2009-03-03 19:32:37 -0800 | [diff] [blame] | 127 | </LinearLayout> |
| 128 | </LinearLayout> |
Yoshiaki Naka | 28313ba | 2017-08-04 12:20:53 +0900 | [diff] [blame] | 129 | </ScrollView> |
| 130 | </LinearLayout> |