ActionbarSherlock溢出菜单样式的问题 [英] ActionbarSherlock overflow menu styling issue

查看:138
本文介绍了ActionbarSherlock溢出菜单样式的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面的ActionbarSherlock网站上的例子

I am following the examples on the ActionbarSherlock website

<style name="Theme.Styled" parent="Theme.Sherlock.Light.DarkActionBar">
    <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
    <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>

<style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
    <item name="background">@drawable/bg_striped</item>
    <item name="android:background">@drawable/bg_striped</item>

    <item name="backgroundSplit">@drawable/bg_striped_split</item>
    <item name="android:backgroundSplit">@drawable/bg_striped_split</item>
</style>

然而,与此设置,我不能够改变风格的溢出菜单。 属性机器人:popupMenuStyle 机器人:dropDownListViewStyle 完全被忽略。

however with this setup I am not able to change the style for the overflow menu. the properties "android:popupMenuStyle" and "android:dropDownListViewStyle" is completely ignored.

如果我改变主题父 Theme.Sherlock.Light 它的工作原理。这是故意的吗?如果不是你将如何风格溢流下拉菜单,并在同一时间保持主题父 Theme.Sherlock.Light.DarkActionBar 按福尔摩斯网站上的例子。

If i change the themes parent to "Theme.Sherlock.Light" it works. Is this intentional? If not how would you style the overflow menu dropdown and at the same time keep the themes parent "Theme.Sherlock.Light.DarkActionBar" as per the example on the Sherlock website.

感谢

推荐答案

您应该看看这个动作条的风格生成。它的伟大工程,应该有助于解决您的问题: http://jgilfelt.github.com/android-actionbarstylegenerator/

You should check out this actionbar style generator. It works great and should help resolve your issue: http://jgilfelt.github.com/android-actionbarstylegenerator/

这篇关于ActionbarSherlock溢出菜单样式的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆