XLPagerTabStrip switching horizontal scrolling tabs to multi-row tabs

718 views Asked by At

I have a view controller which extends ButtonBarPagerTabStripViewController and there are 9 tabs to be displayed in the ButtonBarView. I'm wondering if it's possible to disable the horizontal scrolling and make it into 3 tabs per row with 3 rows in total being shown.

I've looked into its documentation and source codes on GitHub and tag on StackOverflow but couldn't find any solutions to it.

XLPagerTabStrip GitHub

Any help is much appreciated. Thanks in advance!

Issue: Scrollable Tabs

Trying to achieve: Multi-row tabs

1

There are 1 answers

2
nitin.agam On

In my opinion, you can create the menu with tabs by own using collectionView and hide the default menu of 'xlpagertabstrip' library. You just use the only paging feature of this library and create the top menu using collectionView.

I did this by this way as I explained and using this library: https://github.com/PageMenu/PageMenu (Awesome library)