Skip to content

Disable swipe gesture on TabBar #591

Answered by grahammendick
alexstanbury asked this question in Q&A
Discussion options

You must be logged in to vote

The TabBar on Android maps to the ViewPager. This widget does support horizontally scrolling content. I know this because I investigated it when I added right-to-left (RTL) language support. Android, instead of adding RTL support to the ViewPager, decided to write a whole new widget called ViewPager2. I was going to move over to ViewPager2 but found out that it doesn’t support horizontally scrolling content. I didn’t want to lose this functionality, so the TabBar maps to the ViewPager for LTR and ViewPager2 for RTL languages.

So you should be able to add a horizontal ScrollView to a tab in the TabBar, for example.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexstanbury
Comment options

@grahammendick
Comment options

@alexstanbury
Comment options

@grahammendick
Comment options

@alexstanbury
Comment options

Answer selected by alexstanbury
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants