mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-05 09:13:55 +01:00
Content description for UI elements -- accessibility (#4935)
* Started from welcome layout to main layout adding content descriptions * Adds UI description section to strings.xml and adds a few content descrpitions * Consolidates UI strings to top of file * fixes nearby typos * Removes content descriptions that clash with pr #4766 * Removes unused elements and reverts out-of-scope changes * Restores pic-of-the-day content description Co-authored-by: joshuamccluskey <jpiff57@gmail.com>
This commit is contained in:
parent
e47d057bfe
commit
78bfd0986c
18 changed files with 335 additions and 295 deletions
|
|
@ -11,28 +11,28 @@
|
|||
tools:background="@color/black">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/cart_icon_image_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:gravity="center"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
app:srcCompat="?attr/notification_icon_drawable" />
|
||||
android:id="@+id/cart_icon_image_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/activity_margin_horizontal"
|
||||
android:layout_marginRight="@dimen/activity_margin_horizontal"
|
||||
android:gravity="center"
|
||||
app:srcCompat="?attr/notification_icon_drawable" />
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/notification_count_badge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/cart_icon_image_view"
|
||||
android:layout_alignEnd="@id/cart_icon_image_view"
|
||||
android:layout_alignRight="@id/cart_icon_image_view"
|
||||
android:background="@drawable/notification_badge"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/miniscule_margin"
|
||||
android:textColor="?attr/notification_icon_text_color"
|
||||
android:textSize="7sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
tools:text="9+"
|
||||
tools:visibility="visible" />
|
||||
<TextView
|
||||
android:id="@+id/notification_count_badge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/cart_icon_image_view"
|
||||
android:layout_alignEnd="@id/cart_icon_image_view"
|
||||
android:layout_alignRight="@id/cart_icon_image_view"
|
||||
android:background="@drawable/notification_badge"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/miniscule_margin"
|
||||
android:textColor="?attr/notification_icon_text_color"
|
||||
android:textSize="7sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
tools:text="9+"
|
||||
tools:visibility="visible" />
|
||||
</RelativeLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue