-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID-14884. Improve accessibility for XML list items (Classic) (#376)
* ANDROID-14884. Add new ListRowItem subcomponent for Switch * ANDROID: 14884 Add. Initial contentDescription proposal for RowList * ANDROID-14884 Update. finish main logic for customContentDescription * ANDROID-14884 Update. Refactor code * ANDROID-14884 Update. Improve headline contentDescription logic * ANDROID-14884 Update. Expose new components into Catalog place * ANDROID-14884 Add. Warning when using Toggleable in ListRowView component * ANDROID-14884 Add. Testing for ListRowItem toggleables * Updated screenshots baseline * ANDROID-14884 Update. Improve a11y compatibility with headings * ANDROID-14884 Update. New sub-component documentation * ANDROID-14884 Update. Improve documentation readability * ANDROID-14884 Add. Translations to toggle action click accessibility info * ANDROID-14884 Update. Improve code readability * ANDROID-14884 Update. Apply review suggestions * ANDROID-14884 Fix. Some references to getActionLayout method with crashes * ANDROID-14884 Update. Setup disable override logic for a11y * ANDROID-14884 Update. Disable automatic announcement for Novum testing * ANDROID-14884 Remove. Title heading a11y logic since it triggers a bad impl behavior --------- Co-authored-by: haynlo <[email protected]>
- Loading branch information
Showing
19 changed files
with
704 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
catalog/src/main/res/layout/screen_fragment_lists_catalog_item_with_checkbox.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<com.telefonica.mistica.list.ListRowViewWithCheckBox xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
tools:viewBindingIgnore="true" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:listRowAssetDrawable="@drawable/highlighted_card_custom_background" | ||
app:listRowBadgeCount="gone" | ||
app:listRowBadgeVisible="false" | ||
app:listRowDescription="Any subtitle" | ||
app:listRowAssetType="smallIcon" | ||
app:listRowTitle="Title" /> |
13 changes: 13 additions & 0 deletions
13
catalog/src/main/res/layout/screen_fragment_lists_catalog_item_with_switch.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<com.telefonica.mistica.list.ListRowViewWithSwitch xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
tools:viewBindingIgnore="true" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:listRowAssetDrawable="@drawable/highlighted_card_custom_background" | ||
app:listRowBadgeCount="gone" | ||
app:listRowBadgeVisible="false" | ||
app:listRowIsTitleHeading="true" | ||
app:listRowDescription="Any subtitle" | ||
app:listRowAssetType="smallIcon" | ||
app:listRowTitle="Title" /> |
26 changes: 26 additions & 0 deletions
26
library-test-utils/src/main/res/layout/test_list_row_view_toggleables.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp" | ||
android:orientation="vertical"> | ||
|
||
<com.telefonica.mistica.list.ListRowViewWithSwitch | ||
android:id="@+id/list_row_view_with_switch" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:listRowBadgeCount="gone" | ||
app:listRowBadgeVisible="false" | ||
app:listRowDescription="Test Subtitle" | ||
app:listRowTitle="ListRowView with Switch" /> | ||
|
||
<com.telefonica.mistica.list.ListRowViewWithCheckBox | ||
android:id="@+id/list_row_view_with_checkbox" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
app:listRowBadgeCount="gone" | ||
app:listRowBadgeVisible="false" | ||
app:listRowDescription="Test Subtitle" | ||
app:listRowTitle="ListRowView with CheckBox"/> | ||
</LinearLayout> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.