android 点击右上角加号,弹出下拉菜单的分割线背景颜色设置解决
方案
2015/01/09 0 首先定义如下 style
!-- Change Overflow Menu ListView Divider Property -- PopupMenuListView
parent=
style name=
@android:style/Widget.Holo.ListView.DropDown
/style !--不需要定义内容-- !-- Change Overflow Menu ListView Text Size and Text Size
--
style
name=
PopupMenuTextView
parent=
!--
@android:style/Theme.Holo.Light.DarkActionBar /style Change Overflow Menu Background -- android:Widget.Holo.Light.ListPopupWindow @color/separate_line /item /style 然后在 theme 里引用 style
!--不需要定义内容--
style name= PopupMenu parent= item name= android:popupBackground
style name= StyledIndicators parent= Theme.Sherlock.Light.DarkActionBar name= vpiTabPageIndicatorStyle @style/CustomTabPageIndicator /item name=
android:buttonStyle android:actionBarStyle
@android:style/Widget.Button @style/my_actionbar_style
/item /item
item item
item
item
name= name=
android:actionMenuTextAppearance @style/MenuTextStyle /item item name=
android:actionMenuTextColor @drawable/actionbar_menu_textcolor_selected /item item name= android:itemTextAppearance @style/addActionBarOverflow /item !--定义 下拉菜单的字体样式--
item
name=
android:itemBackground
item
@drawable/submenu_list_item_bacg /item !--定义下拉菜单的 item 背景色--
name= android:dropDownListViewStyle @style/PopupMenuListView /item item name= android:actionBarWidgetTheme @style/PopupMenuTextView /item android:popupMenuStyle @style/PopupMenu /item /style tips:感谢大家的阅读,本文由我司收集整编。仅供参阅!
item name=