自定Action Bar Style

	<!-- Base application theme is the default theme. -->
	<style name="Theme" parent="android:Theme"></style>

	<!-- Variation on the Holo Light theme that styles the Action Bar -->
	<style name="Theme.AndroidDevelopers" parent="android:style/Theme.Holo.Light">
		<item name="android:selectableItemBackground">@drawable/ad_selectable_background</item>
		<item name="android:popupMenuStyle">@style/MyPopupMenu</item>
		<item name="android:dropDownListViewStyle">@style/MyDropDownListView</item>
        <item name="android:actionBarTabStyle">@style/MyActionBarTabStyle</item>
        <item name="android:actionDropDownStyle">@style/MyDropDownNav</item>
        <item name="android:listChoiceIndicatorMultiple">@drawable/ad_btn_check_holo_light</item>
        <item name="android:listChoiceIndicatorSingle">@drawable/ad_btn_radio_holo_light</item>
		<!--<item name="android:actionOverflowButtonStyle">@style/MyOverflowButton</item>-->
	</style>
	
	<!-- style the overflow menu -->
	<style name="MyPopupMenu" parent="android:style/Widget.Holo.Light.ListPopupWindow">
		<item name="android:popupBackground">@drawable/ad_menu_dropdown_panel_holo_light</item>	
	</style>
	
	<!-- style the items within the overflow menu -->
	<style name="MyDropDownListView" parent="android:style/Widget.Holo.ListView.DropDown">
		<item name="android:listSelector">@drawable/ad_selectable_background</item>
	</style>

    <!-- style for the tabs -->
    <!-- <style name="MyActionBarTabStyle" parent="android:style/Widget.Holo.Light.ActionBarView_TabView"> -->
        <style name="MyActionBarTabStyle">
        <item name="android:background">@drawable/actionbar_tab_bg</item>
        <item name="android:paddingLeft">32dp</item>
        <item name="android:paddingRight">32dp</item>
    </style>
	
	<!-- style the list navigation -->
	<!-- <style name="MyDropDownNav" parent="android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar"> -->
	<style name="MyDropDownNav" parent="android:style/Widget.Holo.Light.Spinner">
		<item name="android:background">@drawable/ad_spinner_background_holo_light</item>
		<item name="android:popupBackground">@drawable/ad_menu_dropdown_panel_holo_light</item>
		<item name="android:dropDownSelector">@drawable/ad_selectable_background</item>
	</style>

	<!-- the following can be used to style the overflow menu button
	     only do this if you have an *extremely* good reason to!! -->
	<!--<style name="MyOverflowButton" parent="@android:style/Widget.Holo.ActionButton.Overflow">
		<item name="android:src">@android:drawable/ic_menu_view</item>
		<item name="android:background">@drawable/action_button_background</item>
	</style>-->


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值