Skip to content

Instantly share code, notes, and snippets.

@hieuwu
Created August 31, 2023 13:36
Show Gist options
  • Save hieuwu/fb5e204277f0df8e8910f5494d98ad3f to your computer and use it in GitHub Desktop.
Save hieuwu/fb5e204277f0df8e8910f5494d98ad3f to your computer and use it in GitHub Desktop.
Accessibility in XML view system
<Button
android:id="@+id/confirm_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/margin_medium"
android:background="@drawable/primary_button"
android:importantForAccessibility="yes"
android:text="Confirm"
android:contentDescription="Confirm button, double tap to confirm"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment