mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Added the contentDescription
for views and suppressed this lint warning for some views since we are setting the contentDescription for those views in the code.
This commit is contained in:
parent
72d1ea3340
commit
037d02ab8c
@ -20,6 +20,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="@dimen/favicon_margin_right"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/fav_icon"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
@ -96,6 +97,7 @@
|
||||
android:layout_marginEnd="@dimen/stop_horizontal_margin"
|
||||
android:layout_weight="0.5"
|
||||
android:padding="7dp"
|
||||
tools:ignore="ContentDescription"
|
||||
android:minWidth="@dimen/stop_min_width"
|
||||
android:minHeight="@dimen/stop_min_height"
|
||||
android:src="@drawable/ic_pause_24dp" />
|
||||
@ -109,6 +111,7 @@
|
||||
android:layout_marginEnd="@dimen/stop_horizontal_margin"
|
||||
android:layout_weight="0.5"
|
||||
android:padding="7dp"
|
||||
tools:ignore="ContentDescription"
|
||||
android:minWidth="@dimen/stop_min_width"
|
||||
android:minHeight="@dimen/stop_min_height"
|
||||
android:src="@drawable/ic_stop_24dp" />
|
||||
|
@ -3,6 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:background="?colorSurface"
|
||||
android:padding="24dp">
|
||||
|
||||
@ -13,6 +14,7 @@
|
||||
app:layout_constraintWidth_max="160dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/kiwix_icon"
|
||||
tools:ignore="ContentDescription"
|
||||
app:layout_constraintBottom_toTopOf="@id/heading"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -24,6 +24,7 @@
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:contentDescription="@string/fav_icon"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
@ -73,6 +73,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:contentDescription="@string/app_name"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/kiwix_search_widget_layout_id_height"
|
||||
android:layout_marginStart="@dimen/kiwix_search_widget_margin"
|
||||
@ -14,7 +15,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.1"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:src="@mipmap/ic_launcher"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/search_widget_text"
|
||||
@ -29,13 +31,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.1"
|
||||
android:src="@drawable/ic_stars_black_24dp" />
|
||||
android:src="@drawable/ic_stars_black_24dp"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/search_widget_mic"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.1"
|
||||
android:src="@drawable/ic_mic_black_24dp" />
|
||||
android:src="@drawable/ic_mic_black_24dp"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -18,11 +18,13 @@
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:ignore="ContentDescription"
|
||||
android:src="@drawable/ic_home_kiwix_banner" />
|
||||
</LinearLayout>
|
||||
|
@ -111,6 +111,7 @@
|
||||
android:src="@drawable/action_find_previous"
|
||||
android:visibility="gone"
|
||||
app:fabSize="mini"
|
||||
android:contentDescription="@string/pref_back_to_top"
|
||||
app:layout_anchor="@id/bottom_toolbar"
|
||||
app:layout_dodgeInsetEdges="bottom"
|
||||
tools:visibility="visible" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user