1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2015 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
19<ScrollView
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_height="wrap_content"
22    android:layout_width="match_parent">
23    <LinearLayout
24            android:layout_width="match_parent"
25            android:layout_height="match_parent"
26            android:orientation="vertical"
27            android:padding="16dp">
28
29        <EditText
30                android:layout_width="match_parent"
31                android:layout_height="wrap_content"
32                android:hint="EditText"/>
33
34        <AutoCompleteTextView
35                android:id="@+id/widgets_autocompletetextview"
36                android:layout_width="match_parent"
37                android:layout_height="wrap_content"
38                android:hint="AutoCompleteTextView"/>
39
40        <MultiAutoCompleteTextView
41                android:id="@+id/widgets_multiautocompletetextview"
42                android:layout_width="match_parent"
43                android:layout_height="wrap_content"
44                android:hint="MultiAutoCompleteTextView"/>
45
46        <CheckedTextView
47                android:layout_width="match_parent"
48                android:layout_height="wrap_content"
49                android:text="CheckedTextView"
50                android:checked="true"
51                android:checkMark="?android:listChoiceIndicatorMultiple"/>
52
53        <TextView
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:text="Input type demos"
57            />
58
59        <androidx.appcompat.widget.AppCompatEditText
60            android:layout_width="match_parent"
61            android:layout_height="wrap_content"
62            android:hint="android:inputType=number android:digits=01234"
63            android:inputType="number"
64            android:digits="01234"
65            />
66
67        <androidx.appcompat.widget.AppCompatEditText
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            android:hint="android:inputType=numberDecimal android:digits=01234,"
71            android:inputType="numberDecimal"
72            android:digits="01234,"
73            />
74
75        <androidx.appcompat.widget.AppCompatEditText
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:hint="android:inputType=datetime"
79            android:inputType="datetime"
80            />
81
82        <androidx.appcompat.widget.AppCompatEditText
83            android:layout_width="match_parent"
84            android:layout_height="wrap_content"
85            android:hint="android:inputType=date"
86            android:inputType="date"
87            />
88
89        <androidx.appcompat.widget.AppCompatEditText
90            android:layout_width="match_parent"
91            android:layout_height="wrap_content"
92            android:hint="android:inputType=phone"
93            android:inputType="phone"
94            />
95
96        <androidx.appcompat.widget.AppCompatEditText
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:hint="android:inputType=textPassword"
100            android:inputType="textPassword"
101            />
102    </LinearLayout>
103</ScrollView>