Lint: fix TextFields

This commit is contained in:
Benoit Marty 2020-03-05 11:09:58 +01:00
parent 37afc983c3
commit a264dcf5c4
4 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,7 @@
<!-- UX -->
<issue id="ButtonOrder" severity="error" />
<issue id="TextFields" severity="error" />
<!-- Layout -->
<issue id="UnknownIdInLayout" severity="error" />

View File

@ -13,7 +13,8 @@
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:inputType="text">
<requestFocus />
</EditText>

View File

@ -2,6 +2,7 @@
<!-- This file is here to fix Google issue https://code.google.com/p/android/issues/detail?id=231576 -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
@ -20,7 +21,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="4dp"
android:paddingEnd="4dp" />
android:paddingEnd="4dp"
tools:ignore="TextFields" />
</LinearLayout>

View File

@ -89,6 +89,7 @@
android:gravity="center_vertical"
android:hint="@string/direct_room_filter_hint"
android:importantForAutofill="no"
android:inputType="text"
android:maxHeight="80dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"