|
1 | 1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
2 | 3 | android:layout_width="match_parent" |
3 | 4 | android:layout_height="wrap_content" |
4 | 5 | android:orientation="vertical" |
|
9 | 10 | android:id="@+id/helper" |
10 | 11 | android:layout_width="match_parent" |
11 | 12 | android:layout_height="wrap_content" |
12 | | - android:layout_marginBottom="4dp" |
13 | 13 | android:text="Set an empty value to use default 'CALCULATED' width or " |
| 14 | + android:textColor="?attr/colorOnSurfaceVariant" |
14 | 15 | android:textSize="14sp" /> |
15 | 16 |
|
16 | | - <EditText |
| 17 | + <com.google.android.material.textfield.TextInputLayout |
17 | 18 | android:id="@+id/width" |
| 19 | + style="@style/Widget.Material3.TextInputLayout.OutlinedBox" |
18 | 20 | android:layout_width="match_parent" |
19 | 21 | android:layout_height="wrap_content" |
20 | | - android:digits="0123456789" |
21 | | - android:hint="CALCULATED" |
22 | | - android:importantForAutofill="no" |
23 | | - android:inputType="numberDecimal" |
24 | | - android:maxLength="4" |
25 | | - android:maxLines="1" /> |
| 22 | + android:layout_marginTop="10dp" |
| 23 | + android:hint="Width" |
| 24 | + app:errorEnabled="true"> |
| 25 | + |
| 26 | + <com.google.android.material.textfield.TextInputEditText |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:digits="0123456789" |
| 30 | + android:inputType="numberDecimal" |
| 31 | + android:maxLines="1" /> |
| 32 | + |
| 33 | + </com.google.android.material.textfield.TextInputLayout> |
26 | 34 | </LinearLayout> |
0 commit comments