Light.DarkActionBar menu item text colour unchangeable?

后端 未结 6 1057
轻奢々
轻奢々 2021-02-01 19:34

The application I\'ve been developing uses ActionBarSherlock, and the main theme inherits from Theme.Sherlock.Light.DarkActionBar. The design requires that the overflow menu pop

6条回答
  •  半阙折子戏
    2021-02-01 19:53

    Giving it a chance: there is a text appearance called actionMenuTextAppearance. Have you tried that?

    Update: I did some more digging and I believe that this file is the layout And there they refer to textAppearanceListItemSmall and textAppearanceSmall. However, it takes this value from a special theme which is specified as following in Theme.Holo.Light

    @android:style/Theme.Holo.Light.CompactMenu
    

    And like this in Theme.Holo:

    @android:style/Theme.Holo.CompactMenu
    

    The problems comes from the fact that the parent of Sherlock.__Theme.DarkActionBar is Theme.Sherlock.Light. This is not valid for the dark action bar. Taking the line from Theme.Holo should do the trick.

提交回复
热议问题