diff options
author | Jack Yu <jackyu@google.com> | 2019-10-29 16:59:17 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-10-29 16:59:17 -0700 |
commit | ae3c6d69612a13c7132dcaff1fc2b59db4656421 (patch) | |
tree | ce751cad1aabb9747f69bc9df925261780a5514d /res | |
parent | a4a241e58978a4853a14ba4eb8ad33578679fc03 (diff) | |
parent | 492789375aa92de0466c2fd11f9331897abc67b9 (diff) | |
download | Stk-ae3c6d69612a13c7132dcaff1fc2b59db4656421.tar.gz |
Merge "Improve the UI layout of the input screen" am: 58cf752ac5
am: 492789375a
Change-Id: I4fc51798fe20823d75d3cde07e89f978efcb406e
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/stk_input.xml | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/res/layout/stk_input.xml b/res/layout/stk_input.xml index 7f8f96d..427ad42 100644 --- a/res/layout/stk_input.xml +++ b/res/layout/stk_input.xml @@ -19,8 +19,15 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?android:attr/colorBackground" + android:elevation="4dp" + android:theme="@style/ThemeOverlay.AppCompat.ActionBar"/> <ImageButton - style="@android:style/Widget.Material.ActionButton.Overflow" + style="@style/Widget.AppCompat.ActionButton.Overflow" android:id="@+id/more" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -62,32 +69,17 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> - <LinearLayout - android:id="@+id/input_restriction_info" - android:layout_width="wrap_content" + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/text_input_layout" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="4dip" - android:orientation="vertical"> - <TextView - android:id="@+id/input_type" - android:gravity="start" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="?android:attr/textColorSecondary" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> - <TextView - android:id="@+id/num_of_chars" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="?android:attr/textColorSecondary" - android:layout_width="wrap_content" - android:layout_height="wrap_content" /> - </LinearLayout> - <EditText - android:id="@+id/in_text" - android:layout_gravity="center_horizontal" android:layout_marginBottom="16dip" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:orientation="vertical"> + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/in_text" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + </com.google.android.material.textfield.TextInputLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" @@ -102,13 +94,13 @@ android:layout_weight="1" android:gravity="center_vertical" android:paddingStart="0dip" - style="@android:style/Widget.Material.Button.Borderless.Colored" + style="@style/Widget.AppCompat.Button.Borderless.Colored" android:text="@string/button_cancel" /> <Button android:id="@+id/button_ok" android:layout_height="48dip" android:layout_width="wrap_content" - style="@android:style/Widget.Material.Button.Colored" + style="@style/Widget.AppCompat.Button.Colored" android:text="@string/button_ok" /> </LinearLayout> </LinearLayout> @@ -123,13 +115,13 @@ android:id="@+id/button_no" android:layout_height="wrap_content" android:layout_width="wrap_content" - style="@android:style/Widget.Material.Button.Borderless.Colored" + style="@style/Widget.AppCompat.Button.Borderless.Colored" android:text="@string/button_no" /> <Button android:id="@+id/button_yes" android:layout_height="wrap_content" android:layout_width="wrap_content" - style="@android:style/Widget.Material.Button.Colored" + style="@style/Widget.AppCompat.Button.Colored" android:text="@string/button_yes" /> </LinearLayout> </LinearLayout> |