ActionBar的Splite模式

SplitActionBar在窄屏设备中自动将Action Bar拆分成3部分:Top Bar、Navigation Bar、Bottom Bar。

 

修改AndroidManifest.xml,在<Activity>中设置android:uiOptions属性值为splitActionBarWhenNarrow。为了兼容Android2.x需额外添加添加<meta-data>子元素。

android:uiOptions="splitActionBarWhenNarrow"
<meta-data
    android:name="android.support.UI_OPTIONS"
    android:value="splitActionBarWhenNarrow" /> 


ActionBar的Splite模式

Android2.3模拟器效果图

相关文章:

  • 2021-09-16
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案