Action Bar Menu Text Color (ABMTC)


ABMTC:   SOLD       




Hi dev, I would like to share a little more of the sad experience of a beginner Android Developer who was having trouble changing the color of the action bar menu text but was unsuccessful.

The silliness starts here.

<style name="Theme.Kanku.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
    <item name="android:textColor">@color/white</item>
</style>

I thought that this method could meet my expectations, but it turned out that the title of the action bar changed, wow, the struggle didn't stop there, I used my Google Fu again to focus on finding how to change the color of the action bar text.

Long story short, I found the solution, here it is.

<style name="ThemeName" parent="@style/Theme.Sherlock.Light">
    <item name="actionMenuTextColor">@color/white</item>
    <item name="android:actionMenuTextColor">@color/white</item>
</style>

Implement the theme in the related activity. Done!


Post a Comment

Previous Next

نموذج الاتصال