Using list and tab navigation with ActionBarSherlock?

I am looking at a demonstration of ActionBarSherlock samples, and I can see that List Navigation and Tab Navigation use the ActionNarizeMode ActionBar method. This tells me that you can only have one or the other. If I want the user to be able to navigate lists to move between actions, but I want some actions to have tabs, is there a different way to add tabs than in navigation mode? Is this against the recommendations for developing an ActionBar? I don’t look at the tabs and I think that this is a navigation function, so I find it strange that you get one or the other.

+4
source share
1 answer

This tells me that you can only have one or the other.

Right. Keep in mind that with the tabbed action bar, Android will convert you to a navigation list yourself, in certain configurations, whether you like it or not.

If I want the user to be able to navigate lists to move between actions, but I want some actions to have tabs, is there a different way to add tabs than in navigation mode?

You can use ViewPager with PagerTabStrip or taste the ViewPagerIndicator tab.

Or you can go retro and use TabHost and TabWidget .

Is this used for recommendations on developing an ActionBar like?

Design guides refer to them as separate options for View Controls. More importantly, given the automatic conversion of the navigation on the tab to list navigation, it would be very difficult to put in place an action bar with two Spinner s navigation options.

+4
source

Source: https://habr.com/ru/post/1439490/


All Articles