1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright (C) 2022 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16--> 17 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:layout_width="wrap_content" 21 android:layout_height="match_parent" 22 android:focusable="true" 23 android:focusableInTouchMode="true" 24 android:orientation="vertical" > 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="horizontal" > 30 31 <TextView 32 android:id="@+id/username_label" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:text="Username" /> 36 37 <EditText 38 android:id="@+id/username" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:autofillHints="username" /> 42 </LinearLayout> 43 44 <LinearLayout 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:orientation="horizontal" > 48 49 <TextView 50 android:id="@+id/cc_number_label" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:text="CC Number" /> 54 55 <EditText 56 android:id="@+id/cc_number" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:autofillHints="creditCardNumber" /> 60 </LinearLayout> 61 62 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:orientation="horizontal" > 66 67 <TextView 68 android:id="@+id/email_address_label" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:text="Email Address" /> 72 73 <EditText 74 android:id="@+id/email_address" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:autofillHints="emailAddress" /> 78 </LinearLayout> 79 80 <LinearLayout 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:orientation="horizontal" > 84 85 <TextView 86 android:id="@+id/phone_number_label" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:text="Phone Number" /> 90 91 <EditText 92 android:id="@+id/phone_number" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:autofillHints="phone" /> 96 </LinearLayout> 97 98</LinearLayout>