I have created 30 scrollable tabs using tablayout.
So first three tabs are visible on screen and rest of them are invisible which can be scroll using swipe gesture.
viewpager.setItem(position) should also set the position of the tab
viewpager.setItem(position)