[英]ActionBarSherlock overflow listview
After integrating the ActionBarSherlock in my android app I noticed that the dropdown menu that drops when the user hits the overflow button differs between 2.* and 4.*. 将ActionBarSherlock集成到我的android应用中后,我注意到,当用户点击溢出按钮时,下拉菜单会在2. *和4. *之间有所不同。
I have successfully customize this dropdown menu for 2.* with the right colours, but the dropdown menu in 4.* is displayed with white color andblack text and nothing that I do seems to modify this menu. 我已经使用正确的颜色成功地为2. *自定义了该下拉菜单,但是4. *中的下拉菜单显示为白色和黑色文本,但我似乎没有做任何修改。
Do I need to do anything special to customize this dropdown menu in 4.*? 在4. *中自定义此下拉菜单是否需要做一些特殊的事情? it is even possible?
甚至有可能吗?
Thanks 谢谢
When you add a style for ABS, you must be sure to also include the proper Android tags. 为ABS添加样式时,必须确保还包括正确的Android标签。 Eg
例如
Not just 不只是
<item name="actionBarStyle">@style/ActionBar</item>
But 但
<item name="actionBarStyle">@style/ActionBar</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
The former only controls ABS, and the library uses the standard Action Bar on 4.x. 前者仅控制ABS,而库使用4.x上的标准操作栏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.