Commit 665aacb3 authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

[PwdCheckAndroid] Make the edit layout a ScrollView

This ensures that the entire view is scrolled when the keyboard starts
overlapping with the contents.

Bug: 1133221
Change-Id: Id826c7ea25a25d4424aed75f51389b4ae8d9b362
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440498Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812600}
parent f20e3bf7
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
found in the LICENSE file. --> found in the LICENSE file. -->
<!-- Layout for a preference with a title and a compound drawable above. --> <!-- Layout for a preference with a title and a compound drawable above. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingStart="@dimen/password_entry_editor_content_spacing" android:paddingStart="@dimen/password_entry_editor_content_spacing"
...@@ -15,6 +14,11 @@ ...@@ -15,6 +14,11 @@
android:paddingLeft="@dimen/password_entry_editor_content_spacing" android:paddingLeft="@dimen/password_entry_editor_content_spacing"
android:paddingRight="@dimen/password_entry_editor_content_spacing"> android:paddingRight="@dimen/password_entry_editor_content_spacing">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Site --> <!-- Site -->
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/site_label" android:id="@+id/site_label"
...@@ -102,7 +106,6 @@ ...@@ -102,7 +106,6 @@
app:srcCompat="@drawable/ic_visibility_off_black" app:srcCompat="@drawable/ic_visibility_off_black"
app:tint="@color/default_icon_color_tint_list" app:tint="@color/default_icon_color_tint_list"
style="?android:attr/buttonStyleSmall"/> style="?android:attr/buttonStyleSmall"/>
</LinearLayout> </LinearLayout>
<TextView <TextView
...@@ -111,5 +114,5 @@ ...@@ -111,5 +114,5 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/> android:textAppearance="@style/TextAppearance.TextSmall.Secondary"/>
</LinearLayout>
</LinearLayout> </ScrollView>
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment