سؤال

I use the following styles to style my ActionBar:

<style name="Theme.Bloodpressure" parent="@android:style/Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/ActionBar.Solid.Bloodpressure</item>
    </style>


    <style name="ActionBar.Solid.Bloodpressure" parent="@android:style/Widget.Holo.Light.ActionBar.Solid">
        <item name="android:background">@drawable/ab_background_textured_bloodpressure</item>
        <item name="android:backgroundSplit">@drawable/ab_background_textured_bloodpressure</item>
        <item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item>
    </style>

    <style name="MyTheme.ActionBar.TitleTextStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid">
    <item name="android:textColor">@color/action_bar_title_color</item>
    <item name="android:textSize">@dimen/np_top_margin</item>
  </style>

I am being displayed the following menu icon: enter image description here

How do I show the holo light menu icon instead of the current black one?

هل كانت مفيدة؟

المحلول

The current icon is the Holo Light overflow icon.

You can override the overflow button style of the Holo Light-theme with android:actionOverflowButtonStyle

<style name="Theme.Bloodpressure" parent="@android:style/Theme.Holo.Light">
    <item name="android:actionBarStyle">@style/ActionBar.Solid.Bloodpressure</item>

    /* Use Holo Dark style for the overflow icon*/
    <item name="android:actionOverflowButtonStyle">@android:style/ActionBar.Holo.ActionButton.Overflow</item>
</style>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top