Ankita
Ankita

Reputation: 433

Customize Accessibility on Horizontal Pager Jetpack Compose

I'm trying to customize the accessibility for the horizontal pager. enter image description here

This is how the pager looks. The previous and next view are partially visible. But I don't want these partially visible views to receive accessibility events. Only the selected view should get accessibility event. When we move the focus, it should land on the text below the view and not on the next item in horizontal pager.

Also when we swipe and select the next item, the selected item should receive accessibility event and announce it.

I'm new to jetpack compose and finding it hard to customize this. If anyone can guide me in correct direction that would be helpful.

Upvotes: 0

Views: 41

Answers (0)

Related Questions