Blackstar Blackstar - 1 year ago 137
Android Question

Tablayout , disable change between tabs with slide

I made a TabLayout and it's work fine , but I want to disable change between tabs with slide and make it change tabs only by clicking the tab name
is there a way to do it?

Answer Source

Just use the TabLayout without the ViewPager. In your onTabSelected, you load the view or fragment you want into the page container.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download