android - Can I style the text in the overflow menu on devices that have hardware key -


i have been looking problem , can't find solution, nor recent response. question year ago (how style text in action overflow menu) said there no way handle text color, hope appcompat has addressed sherlock failed.

i have tried changing android:textcolor android:paneltextappearance no avail. gone through source looking style might addressing no luck. know of possible solution? or still not possible?

i'd cares hardware menus supposed 6 feet under, since samsung keeps on using them forced this. thank responses have

did try this? stackoverflow.com/a/19008769/1139784 assume since there similar answer on question linked.

@override public void oncreateoptionsmenu(menu menu, menuinflater inflater) {     inflater.inflate(r.menu.your_menu, menu);      int positionofmenuitem = 0; // or whatever...     menuitem item = menu.getitem(positionofmenuitem);     spannablestring s = new spannablestring("my red menuitem");     s.setspan(new foregroundcolorspan(color.red), 0, s.length(), 0);     item.settitle(s); } 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -