I have a MainActivity with a VIewPager adapter and i have three Tabs. Each tab displays its own fragment. But i want, for example in the first tab, to have a button and when i click i want to change the fragment of the current Tab ONLY.
How can i do this...?? Where should i wirte the button listener and how i replace the fragment..???