diff --git a/packages/SystemUI/res/layout/qs_paged_tile_layout.xml b/packages/SystemUI/res/layout/qs_paged_tile_layout.xml index 9dd3ad284217b..55d7fab3898e8 100644 --- a/packages/SystemUI/res/layout/qs_paged_tile_layout.xml +++ b/packages/SystemUI/res/layout/qs_paged_tile_layout.xml @@ -33,7 +33,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" - android:gravity="center" /> + android:gravity="center" + android:importantForAccessibility="yes" + android:focusable="true" /> Expand quick settings. + + Page %1$d of %2$d + diff --git a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java index 5cb46ac22889e..e050b0d68d202 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java +++ b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java @@ -60,6 +60,8 @@ public class PageIndicator extends ViewGroup { public void setLocation(float location) { int index = (int) location; + setContentDescription(getContext().getString(R.string.accessibility_quick_settings_page, + (index + 1), getChildCount())); int position = index << 1 | ((location != index) ? 1 : 0); if (DEBUG) Log.d(TAG, "setLocation " + location + " " + index + " " + position);