Tabs with ActionBarSherlock and Snippets with Nav Top Bar

I implement the same design as here: Android ActionBarSherlock Top Bar and using the accepted response code. Although it pushes my navigation bar below my tabs:

Valid XHTML http://img255.imageshack.us/img255/8908/tabsa.png .

Any idea why?

+1
source share
1 answer

Its a bug with ActionBarSherlock (from https://github.com/JakeWharton/ActionBarSherlock/issues/327 ).

Cause:

When you call setDisplayShowHomeEnabled (false) in onCreate () and using the tab navigation mode, tabs will appear above the action bar, unlike below.

:
setDisplayShowHomeEnabled :

View homeIcon = findViewById(android.R.id.home);
((View) homeIcon.getParent()).setVisibility(View.GONE);
0

All Articles