But I want the two fixed tabs to be next to each other. How is this possible in the support library or using the viewpage function?
You will need to write your own indicator. Or you can use the tabs of the action bar in conjunction with the ViewPager , but this will contradict the existing navigation in the action bar, and you cannot be relied on to give you tabs anyway.
Since the tabs will scroll meaningfully if they are too large for the screen, I personally would not worry about this problem.
source share