Skip to content

feat(android): custom accessiblityImportant value for views#14385

Draft
m1ga wants to merge 5 commits intomainfrom
androidA11y
Draft

feat(android): custom accessiblityImportant value for views#14385
m1ga wants to merge 5 commits intomainfrom
androidA11y

Conversation

@m1ga
Copy link
Contributor

@m1ga m1ga commented Jan 27, 2026

fixes #14384

const win = Ti.UI.createWindow();
const view = Ti.UI.createView({
	accessibilityValue: "outer",
	accessibilityImportant: Ti.UI.Android.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS,
	width: 200,
	height: 200,
	backgroundColor: "red"
})

const view2  = Ti.UI.createView({
	accessibilityValue: "inner",
	width: 100,
	height: 100,
	backgroundColor: "green"
})
view.add(view2);
win.add(view);
win.open();

// Ti.UI.Android.IMPORTANT_FOR_ACCESSIBILITY_NO
// Ti.UI.Android.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
// Ti.UI.Android.IMPORTANT_FOR_ACCESSIBILITY_AUTO
// Ti.UI.Android.IMPORTANT_FOR_ACCESSIBILITY_YES
  • run the app and it won't read the child accessiblityValue
  • change it to IMPORTANT_FOR_ACCESSIBILITY_NO and it won't read "outer" but still "inner"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand options for Android's implemenation of accessibilityHidden on Views/Windows

1 participant