Is there a way to use ActionBar tabs, but with the tabs switching ContentViews instead of fragments? The issue is that I have dual-pane layouts on large screens that have a fragment in each of two panes and I’d want to switch out the whole container view when that tab is selected.
Currently I’m using my own tabbing mechanism, but I’d like to integrate better into the built-in features and behavior of the ActionBar, and to save space by not having to have a separate ActionBar and tab bar when possible.
From the Action Bar docs —
If you specify a layout for your activity with slots for two fragments, you can replace them both (or even just one if that makes sense your app) in the
ActionBar.TabListenercallback. The callback still leaves you in control of the layout.