• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root HELP! Context (long-press) Menu Text Color

punkmaxx

Android Enthusiast
Long-Press Menu Text Color (not the Menu Button "bottom popup menu")

i'm having a hell of a time finding the necessary XML edits to change the text color of context (long-press) menus and i have edited possibly every text appearance/color attribute of the framework in the styles.xml and a few other XML's in the /layout folder and i still can't get it. There seems to be no info at any forums about this specifically (searched forever).
Any thoughts? This is quite frustrating.

18 hours of making changes to framework; 100+ flashes to phone; still no results. Please Help!

OS:Vanilla Froyo

screenshot_37.png
screenshot_38.png
screenshot_39.png
screenshot_40.png
 
This is not the final answer but it will point you in the direction. Here's the parent control that will affect a lot of text. You can then narrow it down to whichever child style that you only want it to affect--unless of course, you don't mind all of that text to be affected.

In framework-res.apk open styles.xml in \res\values in a text editor.

Look for the style

<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
</style>

Add the line
<item name="textColor">#ffff0000</item>

where #ffff0000 is any color that you want, in this example it is red, or use the color variables such as "?primaryinverse", etc.

to this so that it now looks like:

<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
<item name="textColor">#ffff0000</item>
</style>

This will result in these types of looks:
screenshot_2-1.png
screenshot_1-1.png
 
thank you so much this will help a lot. :) I can get it narrowed down to individuals now that i know what descriptor to start at.
 
Back
Top Bottom