I have a typical TabLayout with a ViewPager attached to it so I can scroll through it by both swiping views and clicking on the tabs (just like presented here and cannot find a way of allowing users to reorder those tabs (and the corresponding pages)
I would like it to work like this: the user long presses one tab and drags it to the left and right, switching position with the others, just like you do with ItemTouchHelper and RecycleView.
Problem is, I don't find anything like ItemTouchHelper for TabLayout, if it even exists.
Use LTR RTL To change tablayout Order Position inside onTabSelected.