2011-12-01 126 views
3

我有一個現有的應用程序,它有兩個選項卡,按鈕在操作欄中。我想將它移植到ICS,我擔心的是這些物品如何在ICS設備上堆積起來?使蜂窩ActionBar與ICS兼容

將所有的showAsAction="ifRoom|withText"隱藏到菜單中嗎?或者它會在ICS gmail應用程序的底部創建一個新的操作欄。 enter image description here

回答

3

操作將堆疊在頂部,如果沒有足夠的空間,操作將被隱藏。 如果您拆分操作欄,那麼他們將來到底部 您必須配置應用程序標籤以將其配置爲拆分

<application android:label="@string/app_name" 
    android:icon="@drawable/icon" 
    android:logo="@drawable/logo" 
    android:theme="@style/AppTheme.Light" 
    android:hardwareAccelerated="true" 
    android:debuggable="true" android:uiOptions="splitActionBarWhenNarrow">