How can I switch between tabs in a TabLayout programatically from within a fragment which is currently displayed in the selected tab?
I have a button in my fragment which I want to switch to the other tab\fragment, and I can not use - `tabs.getTabAt(2).select();` because it does not work from inside the fragment.