Walter Jang | f260c8c | 2016-05-15 14:50:36 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2016 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 | |
Aurimas Liutikas | 1f8811c | 2019-01-30 21:39:48 -0800 | [diff] [blame] | 17 | <com.google.android.material.textfield.TextInputLayout |
Marcus Hagerott | 8d62cd2 | 2016-08-01 17:31:38 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 20 | android:id="@+id/text_input_layout" |
Sean Midford | d3bf8fc | 2016-11-22 14:59:24 -0800 | [diff] [blame] | 21 | android:layout_width="match_parent" |
Walter Jang | f260c8c | 2016-05-15 14:50:36 -0700 | [diff] [blame] | 22 | android:layout_height="wrap_content" |
| 23 | android:orientation="vertical" |
Sean Midford | d3bf8fc | 2016-11-22 14:59:24 -0800 | [diff] [blame] | 24 | android:paddingTop="@dimen/custom_dialog_layout_padding" |
| 25 | android:paddingEnd="@dimen/custom_dialog_layout_padding" |
| 26 | android:paddingStart="@dimen/custom_dialog_layout_padding" |
Marcus Hagerott | 8d62cd2 | 2016-08-01 17:31:38 -0700 | [diff] [blame] | 27 | app:errorEnabled="true" |
| 28 | app:hintEnabled="false"> |
Walter Jang | f260c8c | 2016-05-15 14:50:36 -0700 | [diff] [blame] | 29 | |
Marcus Hagerott | 9838851 | 2018-03-30 09:22:13 -0700 | [diff] [blame] | 30 | <!-- In Android P there is no initial focus by default in touch mode. See b/77244371 --> |
| 31 | <requestFocus /> |
| 32 | |
Aurimas Liutikas | 1f8811c | 2019-01-30 21:39:48 -0800 | [diff] [blame] | 33 | <com.google.android.material.textfield.TextInputEditText |
Marcus Hagerott | 8d62cd2 | 2016-08-01 17:31:38 -0700 | [diff] [blame] | 34 | android:id="@android:id/text1" |
Walter Jang | f260c8c | 2016-05-15 14:50:36 -0700 | [diff] [blame] | 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="wrap_content" |
Sean Midford | d3bf8fc | 2016-11-22 14:59:24 -0800 | [diff] [blame] | 37 | android:layout_marginBottom="@dimen/custom_dialog_layout" |
| 38 | android:layout_marginEnd="@dimen/custom_dialog_layout" |
Walter Jang | 72f9988 | 2016-05-26 09:01:31 -0700 | [diff] [blame] | 39 | android:hint="@string/group_name_dialog_hint" |
Walter Jang | 76931b4 | 2016-07-09 14:59:16 -0700 | [diff] [blame] | 40 | android:inputType="text" |
Marcus Hagerott | 8d62cd2 | 2016-08-01 17:31:38 -0700 | [diff] [blame] | 41 | android:maxLength="@integer/group_name_max_length" |
Sean Midford | d3bf8fc | 2016-11-22 14:59:24 -0800 | [diff] [blame] | 42 | android:minHeight="@dimen/dialog_edit_text_min_height" |
| 43 | android:textAlignment="viewStart" |
Marcus Hagerott | 8d62cd2 | 2016-08-01 17:31:38 -0700 | [diff] [blame] | 44 | android:singleLine="true"/> |
Aurimas Liutikas | 1f8811c | 2019-01-30 21:39:48 -0800 | [diff] [blame] | 45 | </com.google.android.material.textfield.TextInputLayout> |