code snippet from snippet: this will change the tab when the button is clicked
((MenuActivity) getActivity()).setCurrentTab(<tabnumber>);
code snippet from menu activity
public void setCurrentTab(int argTabIndex){
mTabHelper.setCurrentTab(argTabIndex);
}
Following the example of actionbarcompat.
https://github.com/antoniolg/ActionBarCompatExample
gulla source
share