mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53: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
|
|
@ -35,11 +35,12 @@
|
|||
android:textSize="@dimen/normal_text"
|
||||
android:textStyle="bold"
|
||||
tools:text="Step 1 of 15" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/tooltip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/mapbox_info_icon_default"/>
|
||||
android:src="@drawable/mapbox_info_icon_default" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
|
@ -129,26 +130,28 @@
|
|||
android:id="@+id/depicts_next"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="@android:color/white"
|
||||
android:text="@string/next" />
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:contentDescription="@string/next"
|
||||
android:text="@string/next"
|
||||
android:textColor="@android:color/white" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/depicts_previous"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="@dimen/standard_gap"
|
||||
android:layout_marginRight="@dimen/standard_gap"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_toLeftOf="@id/depicts_next"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:layout_toStartOf="@id/depicts_next"
|
||||
android:layout_toLeftOf="@id/depicts_next"
|
||||
android:contentDescription="@string/previous"
|
||||
android:text="@string/previous" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue