android - ActionBarSherlock Change Text Color of Overflow Action Items -


i'm working on android app , using actionbarsherlock compatibility. works great far, except fact want change text color of overflow menu items.

here's way look:

enter image description here

now, reason usign holo.light.darkactionbar base theme since way icons white, text white on actionbar's title , subtitle, , other things.

to knowledge, , per question, should able change following:

<!-- values --> <style name="theme.laprensa_compat_holo_light_dark_action_bar" parent="@style/theme.sherlock.light.darkactionbar">     <item name="spinneritemstyle">@style/spinneritemstyle</item>  <!-- values-v14 --> <style name="theme.laprensa_compat_holo_light_dark_action_bar" parent="@style/theme.sherlock.light.darkactionbar">     <item name="android:spinneritemstyle">@style/spinneritemstyle</item> 

and spinneritemstyle is:

<style name="spinneritemstyle" parent="widget.sherlock.textview.spinneritem">     <item name="android:textcolor">@android:color/black</item> </style> 

now, doesn't seem working, added

<item name="spinneritemstyle">@style/spinneritemstyle</item> 

to children theme too:

<style name="actionbar.solid.laprensa_compat_holo_light_dark_action_bar" parent="@style/widget.sherlock.light.actionbar.solid.inverse"> 

it's still no-go.

the answer referenced stated should make sure using correct adapter layout, in reality, not inflating code myself manually, it's regular oncreateoptionsmenu implementation.

any ideas on change make text black? , should know changing actionmenutextcolor items hosted on action bar itself, , doesn't change overflow menu items

edit per matthias' answer, tried following style:

<style name="textappearance.styled.widget.popupmenu.large" parent="textappearance.sherlock.widget.popupmenu.large"> <item name="android:textcolor">@android:color/black</item> </style> 

and used on main theme:

<style name="theme.laprensa_compat_holo_light_dark_action_bar" parent="@style/theme.sherlock.light.darkactionbar"> <item name="textappearancelargepopupmenu">@style/textappearance.styled.widget.popupmenu.large</item> </style> 

but text still non-visible.

<style name="apptheme" parent="@style/theme.sherlock.light.darkactionbar">     <item name="android:textappearancelargepopupmenu">             @style/textappearance.styled.widget.popupmenu.large</item> </style>  <style name="textappearance.styled.widget.popupmenu.large"         parent="textappearance.sherlock.widget.popupmenu.large">     <item name="android:textcolor">?attr/textcolorprimaryinverse</item> </style> 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -