My Android app works perfectly. Fragment with TabLayout starts at first item and works as I need. But now I need to start Fragment with TabLayout from second item. And then I ran into problems.
I found a way to open a second tab (not sure if it's correct) The tabs show the title of the second item as selected. But the content has not changed.
- How to switch tabs programmatically?
- How to switch and content too?
I am new in Android dev. I cant find solution. Help me please !