blob: 9c33a22852679e7edb4c536500671f596eec60ee [file] [log] [blame]
Walter Jangf260c8c2016-05-15 14:50:36 -07001<?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 Liutikas1f8811c2019-01-30 21:39:48 -080017<com.google.android.material.textfield.TextInputLayout
Marcus Hagerott8d62cd22016-08-01 17:31:38 -070018 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 Midfordd3bf8fc2016-11-22 14:59:24 -080021 android:layout_width="match_parent"
Walter Jangf260c8c2016-05-15 14:50:36 -070022 android:layout_height="wrap_content"
23 android:orientation="vertical"
Sean Midfordd3bf8fc2016-11-22 14:59:24 -080024 android:paddingTop="@dimen/custom_dialog_layout_padding"
25 android:paddingEnd="@dimen/custom_dialog_layout_padding"
26 android:paddingStart="@dimen/custom_dialog_layout_padding"
Marcus Hagerott8d62cd22016-08-01 17:31:38 -070027 app:errorEnabled="true"
28 app:hintEnabled="false">
Walter Jangf260c8c2016-05-15 14:50:36 -070029
Marcus Hagerott98388512018-03-30 09:22:13 -070030 <!-- In Android P there is no initial focus by default in touch mode. See b/77244371 -->
31 <requestFocus />
32
Aurimas Liutikas1f8811c2019-01-30 21:39:48 -080033 <com.google.android.material.textfield.TextInputEditText
Marcus Hagerott8d62cd22016-08-01 17:31:38 -070034 android:id="@android:id/text1"
Walter Jangf260c8c2016-05-15 14:50:36 -070035 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
Sean Midfordd3bf8fc2016-11-22 14:59:24 -080037 android:layout_marginBottom="@dimen/custom_dialog_layout"
38 android:layout_marginEnd="@dimen/custom_dialog_layout"
Walter Jang72f99882016-05-26 09:01:31 -070039 android:hint="@string/group_name_dialog_hint"
Walter Jang76931b42016-07-09 14:59:16 -070040 android:inputType="text"
Marcus Hagerott8d62cd22016-08-01 17:31:38 -070041 android:maxLength="@integer/group_name_max_length"
Sean Midfordd3bf8fc2016-11-22 14:59:24 -080042 android:minHeight="@dimen/dialog_edit_text_min_height"
43 android:textAlignment="viewStart"
Marcus Hagerott8d62cd22016-08-01 17:31:38 -070044 android:singleLine="true"/>
Aurimas Liutikas1f8811c2019-01-30 21:39:48 -080045</com.google.android.material.textfield.TextInputLayout>