Label icons for accessibility

Signed-off-by: Patryk Mis <foss@patrykmis.com>
This commit is contained in:
Patryk Mis
2023-04-29 13:58:13 +02:00
parent d741967b5b
commit 79b3645a3a
11 changed files with 22 additions and 7 deletions

View File

@@ -64,6 +64,7 @@
android:layout_marginTop="@dimen/height_bottom_adj"
android:layout_marginEnd="@dimen/margin_normal"
android:layout_marginBottom="@dimen/height_bottom_adj"
android:contentDescription="@string/action_search"
app:backgroundTint="?colorAccent"
app:srcCompat="@drawable/ic_round_search"
app:tint="@color/colorWhite"

View File

@@ -60,6 +60,7 @@
android:padding="@dimen/padding_xsmall"
android:background="?selectableItemBackgroundBorderless"
android:visibility="invisible"
android:contentDescription="@string/expand"
app:srcCompat="@drawable/ic_arrow_right"
app:tint="?android:textColorPrimary" />
</RelativeLayout>
</RelativeLayout>

View File

@@ -118,6 +118,7 @@
android:clickable="true"
android:focusable="true"
android:padding="@dimen/margin_small"
android:contentDescription="@string/details_changelog"
app:srcCompat="@drawable/ic_arrow_right"
app:tint="?colorControlNormal" />

View File

@@ -59,6 +59,7 @@
android:layout_marginStart="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:padding="@dimen/padding_xsmall"
android:contentDescription="@string/expand"
app:srcCompat="@drawable/ic_arrow_right"
app:tint="?android:textColorPrimary" />
</RelativeLayout>
</RelativeLayout>

View File

@@ -64,7 +64,8 @@
android:layout_margin="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:padding="@dimen/padding_xsmall"
android:contentDescription="@string/expand"
app:srcCompat="@drawable/ic_arrow_right"
app:tint="?colorShimmer" />
</RelativeLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
</com.facebook.shimmer.ShimmerFrameLayout>

View File

@@ -33,6 +33,7 @@
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/action_back"
app:srcCompat="@drawable/ic_arrow_back"
app:tint="?colorControlNormal" />
@@ -48,4 +49,4 @@
android:paddingEnd="@dimen/padding_normal"
android:singleLine="true"
tools:text="Title" />
</RelativeLayout>
</RelativeLayout>

View File

@@ -33,6 +33,7 @@
android:layout_marginEnd="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:padding="@dimen/padding_xxsmall"
android:contentDescription="@string/menu"
app:srcCompat="@drawable/ic_menu_unfold"
app:tint="?colorControlNormal" />
@@ -59,6 +60,7 @@
android:layout_marginStart="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:padding="@dimen/padding_xxsmall"
android:contentDescription="@string/title_download_manager"
app:srcCompat="@drawable/ic_download"
app:tint="?colorControlNormal" />
</RelativeLayout>
</RelativeLayout>

View File

@@ -32,6 +32,7 @@
android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/action_back"
app:srcCompat="@drawable/ic_arrow_back"
app:tint="?colorControlNormal" />
@@ -58,6 +59,7 @@
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/margin_small"
android:background="?selectableItemBackgroundBorderless"
android:contentDescription="@string/title_download_manager"
app:srcCompat="@drawable/ic_arrow_download"
app:tint="?colorControlNormal" />
</RelativeLayout>
</RelativeLayout>