Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef454af6 authored by Nancy Chen's avatar Nancy Chen
Browse files

Read unread count in tabs with context in Talkback mode.

Read the unread count as "x unread items" in the tab title.

Bug: 25122434
Change-Id: I1acbebdae979c7ef6c177713ccbe59af6e16a949
parent b9788553
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/view_pager_tab_background">
    android:background="@drawable/view_pager_tab_background"
    android:importantForAccessibility="no">
    <!-- The tab icon -->
    <ImageView
        android:id="@+id/icon"
@@ -35,5 +36,6 @@
        android:paddingRight="@dimen/tab_unread_count_text_padding"
        android:textSize="@dimen/tab_unread_count_text_size"
        android:textColor="@color/tab_accent_color"
        android:fontFamily="sans-serif-medium" />
        android:fontFamily="sans-serif-medium"
        android:importantForAccessibility="no" />
</RelativeLayout>
+13 −0
Original line number Diff line number Diff line
@@ -781,4 +781,17 @@ a ren't members of any other group. [CHAR LIMIT=25] -->
         Example: Mobile • 650-555-1212  -->
    <string name="call_subject_type_and_number"><xliff:g id="type" example="Mobile">%1$s</xliff:g><xliff:g id="number" example="(650) 555-1212">%2$s</xliff:g></string>

    <!-- String format to describe the number of unread items in a tab.

        Note: AccessibilityServices use this attribute to announce what the view represents.
              This is especially valuable for views without textual representation like ImageView.
    -->
    <plurals name="tab_title_with_unread_items">
        <item quantity="one">
            <xliff:g id="title">%1$s</xliff:g>. <xliff:g id="count">%2$d</xliff:g> unread item.
        </item>
        <item quantity="other">
            <xliff:g id="title">%1$s</xliff:g>. <xliff:g id="count">%2$d</xliff:g> unread items.
        </item>
    </plurals>
</resources>