Skip to content

Commit 2c491ca

Browse files
committed
use material components
1 parent 7e88463 commit 2c491ca

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

app/src/main/res/layout/content_activity_info.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<TextView
1616
android:id="@+id/app_name"
17-
style="@style/WindowTitle"
17+
style="@style/PopupWindowTitle"
1818
android:layout_width="wrap_content"
1919
android:layout_height="wrap_content"
2020
android:clickable="false"
@@ -49,7 +49,7 @@
4949
android:orientation="horizontal">
5050

5151
<TextView
52-
style="@style/WindowContent"
52+
style="@style/PopupWindowContent"
5353
android:layout_width="80dp"
5454
android:layout_height="match_parent"
5555
android:layout_marginTop="1dp"
@@ -66,7 +66,7 @@
6666

6767
<TextView
6868
android:id="@+id/package_name"
69-
style="@style/WindowContent"
69+
style="@style/PopupWindowContent"
7070
android:layout_width="match_parent"
7171
android:layout_height="match_parent"
7272
android:layout_marginTop="1dp"
@@ -84,7 +84,7 @@
8484
android:orientation="horizontal">
8585

8686
<TextView
87-
style="@style/WindowContent"
87+
style="@style/PopupWindowContent"
8888
android:layout_width="80dp"
8989
android:layout_height="match_parent"
9090
android:layout_marginTop="1dp"
@@ -101,7 +101,7 @@
101101

102102
<TextView
103103
android:id="@+id/class_name"
104-
style="@style/WindowContent"
104+
style="@style/PopupWindowContent"
105105
android:layout_width="match_parent"
106106
android:layout_height="match_parent"
107107
android:layout_marginTop="1dp"
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:app="http://schemas.android.com/apk/res-auto"
23
android:layout_width="match_parent"
34
android:layout_height="wrap_content"
45
android:orientation="vertical"
@@ -9,18 +10,25 @@
910
android:id="@+id/helper"
1011
android:layout_width="match_parent"
1112
android:layout_height="wrap_content"
12-
android:layout_marginBottom="4dp"
1313
android:text="Set an empty value to use default 'CALCULATED' width or "
14+
android:textColor="?attr/colorOnSurfaceVariant"
1415
android:textSize="14sp" />
1516

16-
<EditText
17+
<com.google.android.material.textfield.TextInputLayout
1718
android:id="@+id/width"
19+
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
1820
android:layout_width="match_parent"
1921
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>
2634
</LinearLayout>

0 commit comments

Comments
 (0)