Android UI ActionBar功能-启动ActionBar

官方帮助文档: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



只要在应用程序的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"



posted @ 2015-10-04 21:58  Bodi  阅读(283)  评论(0)    收藏  举报