I have Activity with ViewPager that contains several Fragments. I am also using drop-down navigation in actionbar
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
To this navigation bar I have some callbacks:
actionBar.setListNavigationCallbacks(mSpinnerAdapter, mNavigationCallback);
My problem is that changing option in navigation list should affect all Fragments inside ViewPager.
How should I do it to be compliant with good OO principles?
I would have your fragments implement an interface like this:
And then just call that method on each fragment in mNavigationCallback.