官方帮助文档:http://wear.techbrood.com/training/basics/actionbar/index.html

----------------------------------------------------------------------------------------------------------------

ActionBar在官方文档中注明在Android3.0以后的版本(3.0以前的版本需要引入android.support.v7 的Library 详细说明请看官方文档:http://wear.techbrood.com/training/basics/actionbar/setting-up.html)中自带了ActionBar功能,并且配置备了三种主题:

分别从上往下是:

Theme.Holo 

Theme.Holo.Light

Theme.Holo.Light.DarkActionBar

Android UI ActionBar功能-启动ActionBar

Android UI ActionBar功能-启动ActionBar

只要在应用程序的AndroidManifest.xml中设置其主题即可:

AndroidManifest.xml的Application 节点中的 android:theme属性,分别为:

android:theme="@android:style/Theme.Holo" 
android:theme="@android:style/Theme.Holo.Light"
android:theme="@android:style/Theme.Holo.Light.DarkActionBar"



相关文章:

  • 2021-06-27
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-07-27
  • 2022-12-23
  • 2021-04-15
猜你喜欢
  • 2021-05-17
  • 2021-06-15
  • 2021-09-15
  • 2021-12-30
  • 2022-03-01
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案