Fix some lint issue about accessibility

This commit is contained in:
Benoit Marty 2021-02-12 14:35:28 +01:00
parent 3c0c445ea7
commit ebd55ea282
5 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,9 @@
<issue id="ButtonOrder" severity="error" /> <issue id="ButtonOrder" severity="error" />
<issue id="TextFields" severity="error" /> <issue id="TextFields" severity="error" />
<!-- Accessibility -->
<issue id="LabelFor" severity="error" />
<!-- Layout --> <!-- Layout -->
<issue id="UnknownIdInLayout" severity="error" /> <issue id="UnknownIdInLayout" severity="error" />
<issue id="StringFormatCount" severity="error" /> <issue id="StringFormatCount" severity="error" />

View File

@ -12,6 +12,7 @@
android:id="@+id/editText" android:id="@+id/editText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/dialog_edit_hint"
android:inputType="text"> android:inputType="text">
<requestFocus /> <requestFocus />

View File

@ -20,6 +20,7 @@
android:id="@android:id/edit" android:id="@android:id/edit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/dialog_edit_hint"
android:paddingStart="4dp" android:paddingStart="4dp"
android:paddingEnd="4dp" android:paddingEnd="4dp"
tools:ignore="TextFields" /> tools:ignore="TextFields" />

View File

@ -64,6 +64,7 @@
android:id="@+id/loginServerUrlFormHomeServerUrl" android:id="@+id/loginServerUrlFormHomeServerUrl"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/hs_url"
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textUri" android:inputType="textUri"
android:maxLines="1" /> android:maxLines="1" />

View File

@ -144,6 +144,8 @@
<string name="dialog_title_error">Error</string> <string name="dialog_title_error">Error</string>
<string name="dialog_title_success">Success</string> <string name="dialog_title_success">Success</string>
<string name="dialog_edit_hint">New value</string>
<!-- Bottom navigation buttons --> <!-- Bottom navigation buttons -->
<string name="bottom_action_home">Home</string> <string name="bottom_action_home">Home</string>
<string name="bottom_action_notification">Notifications</string> <string name="bottom_action_notification">Notifications</string>