1

我正在实现与此处所述相同的设计:Android ActionBarSherlock Top Bar and using the accepted answers code。尽管它正在将我的导航栏推到我的标签下方:

有效的 XHTML http://img255.imageshack.us/img255/8908/tabsa.png

知道为什么吗?

4

1 回答 1

0

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

Cause:

When you call setDisplayShowHomeEnabled(false) in onCreate() and are using a tab navigation mode, the tabs will appear above the action bar as opposed to below it.

Workaround:
Remove the setDisplayShowHomeEnabled call, and add this instead:

View homeIcon = findViewById(android.R.id.home);
((View) homeIcon.getParent()).setVisibility(View.GONE);
于 2012-12-08T22:00:01.170 回答