2011-12-01 29 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">