标签:android color popupmenu style
1、设置背景颜色
1
|
< color name = "popupwindow_background" >#303030</ color > |
2、设置PopupMenu的style--android:popupBackground
1
2
3
4
|
< style name = "Theme.PopupMenu" parent = "@android:style/Widget.Holo.Light.ListPopupWindow" > < item name = "android:popupBackground" >@color/popupwindow_background</ item > </ style > |
3、将PopupMenu的style加载到Activity需要的style中--android:popupMenuStyle
1
2
3
4
|
< style name = "Theme.InCallScreen" parent = "@android:style/Theme.Holo.NoActionBar" > < item name = "android:popupMenuStyle" >@style/Theme.PopupMenu</ item > </ style > |
4、设置Activity需要的style--android:theme,因为要显示popupmenu的style
1
2
3
|
< activity android:name = "InCallScreen" android:theme = "@style/Theme.InCallScreen" > </ activity > |
标签:android color popupmenu style
原文地址:http://blog.csdn.net/u012230055/article/details/44062545