1. Download our Official Android App: Forums for Android!

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

Discussion in 'Android Devices' started by punkmaxx, Sep 28, 2011.

  1. punkmaxx

    punkmaxx Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    475
    Joined:
    Aug 23, 2011

    Aug 23, 2011
    475
    291
    88
    Male
    Music Producer, Arborist, General Contractor
    West Virginia
    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

    [​IMG][​IMG][​IMG][​IMG]
     

    Advertisement

  2. ziggy46

    ziggy46 Android Expert
    Rank:
    None
    Points:
    213
    Posts:
    1,688
    Joined:
    Aug 14, 2011

    Aug 14, 2011
    1,688
    612
    213
    Being a pain in the a$$! LOL
    Chambersburg, Pa
    hey i dont have the answer but can you provide a screenshot of what you want to change?
     
  3. mantera

    mantera Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    1,319
    Joined:
    May 21, 2011

    May 21, 2011
    1,319
    1,587
    313
    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:
    [​IMG][​IMG]
     
    punkmaxx likes this.
  4. punkmaxx

    punkmaxx Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    88
    Posts:
    475
    Joined:
    Aug 23, 2011

    Aug 23, 2011
    475
    291
    88
    Male
    Music Producer, Arborist, General Contractor
    West Virginia
    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.
     
  5. b_randon14

    b_randon14 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    910
    Joined:
    Aug 13, 2011

    Aug 13, 2011
    910
    628
    163
    Pizza Delivery Driver
    Somerset, KY
    You could also change the. 9.pngs for the pop-up menu! But I'd say you want those black lol!
     

Share This Page

Loading...