I'd like to have an app layout as the one they used for Gmail. They have the actionbar that has icons (on my device it has the app logo for up navigation, and a custom view for selecting priority inbox/inbox/etc), but there is also some kind of split ActionBar because at the bottom I have several icons (compose, search, labels, etc).
How could I do this? I have implemented the following ActionBar through this XML:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_gps"
android:icon="@drawable/icone_gps_continu"
android:showAsAction="always"
android:title="@string/menu_gps"/>
<item
android:id="@+id/menu_sort"
android:icon="@drawable/icone_liste_chron"
android:showAsAction="always"
android:title="@string/menu_liste"/>
<item
android:id="@+id/menu_stats"
android:icon="@drawable/icone_statistiques"
android:showAsAction="always"
android:title="@string/menu_stats"/>
<item
android:id="@+id/menu_save"
android:icon="@drawable/icone_terminersortie"
android:showAsAction="always"
android:title="@string/menu_save"/>
<item
android:id="@+id/menu_search"
android:icon="@drawable/ic_launcher"
android:showAsAction="always"
android:title="@string/menu_search"/>
<item
android:id="@+id/menu_photo"
android:icon="@drawable/icone_enregistrerphoto"
android:showAsAction="always"
android:title="@string/menu_photo">
</item>
<item
android:id="@+id/menu_sound"
android:icon="@drawable/icone_enregistrerson"
android:showAsAction="always"
android:title="@string/menu_sound">
</item>
<item
android:id="@+id/menu_settings"
android:icon="@drawable/icone_parametres"
android:showAsAction="always"
android:title="@string/menu_settings">
</item>
</menu>
And I have of course enabled the split ActionBar by adding android:uiOptions="splitActionBarWhenNarrow" to my <application> tag in the manifest.
What I get though is an empty "top" ActionBar; and the bottom one is displaying only three icons. I thought I could display like 3-4 icons at the top and 5 at the bottom in portait mode, and all of them at the top in landscape mode.
Note: even if I'm testing on ICS with my Galaxy Nexus, I'm using ActionBarSherlock in order to provide backward compatibility.