2
I have a tablayout which contains a Viewpager, and I own two Ragments. When I changed the screen by clicking on the tab1 or tab2, for example, it changed the normal tab, but when I used the finger drag to go to the other screen, it changed the screen, but the tablayout indicator remained unchanged.
For example I was in the tab 2 and the indicator was indicated in the tab 1. To correct this I used the setupWithViewPager(viewPager)
, so the indicator changes as I drag my finger through the tabs.
The problem is that when I use this attribute the tabs titles disappear. How can I fix this?
Enter your Pageadapter code.
– ramaral
Use the answer field to explain how the problem is solved and not to leave comments. Do a [tour] to know a little better how the site works.
– Math