I have a MapView
with an action bar powered by ActionBarSherlock. The action bar is both split (on \"narrow\" screens) and overlayed / semi-transparent (android
The bottom bar should match the height of the regular action bar. Thus, using ?android:attr/actionBarSize
(or in ActionBarSherlock's case ?attr/actionBarSize
) for the height in XML or getResources().getDimensionPixelSize(R.attr.actionBarSize)
in code should suffice.
edit:
Er, on a second read of your question it seems more focused on also determining whether or not the split action bar exists.
You may want to read these answers and the follow-up comments by Adam Powell, action bar guru: