As per the accessibility guidelines , switches should implement with text , and with talkback it would get focused and announced altogether .
For Example :
<Switch
android:id="@+id/switch1"
android:text="Switch with text"/>
<LinearLayout
android:orientation="horizontal">
<TextView
android:id="@+id/textView"
android:text="Switch Without Text"/>
<Switch
android:id="@+id/switch2"/>
</LinearLayout>
Screenshots :
Below is incorrect behaviour as per accessibility guidelines :
 |
Incorrect |
 |
Incorrect |
Below example is correct behaviour as per accessibility guidelines :
 |
Correct |
No comments:
Post a Comment