Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The short answer is YES. lucky you!<br> To do so, you need to override some styles of the Android default styles : </p> <p>First, look at the <a href="http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/themes.xml;h=d585d9e11f6369352745cb23bbd49a257604e944;hb=HEAD" rel="noreferrer">definition of the themes</a> in Android : </p> <pre><code>&lt;style name="Theme.IconMenu"&gt; &lt;!-- Menu/item attributes --&gt; &lt;item name="android:itemTextAppearance"&gt;@android:style/TextAppearance.Widget.IconMenu.Item&lt;/item&gt; &lt;item name="android:itemBackground"&gt;@android:drawable/menu_selector&lt;/item&gt; &lt;item name="android:itemIconDisabledAlpha"&gt;?android:attr/disabledAlpha&lt;/item&gt; &lt;item name="android:horizontalDivider"&gt;@android:drawable/divider_horizontal_bright&lt;/item&gt; &lt;item name="android:verticalDivider"&gt;@android:drawable/divider_vertical_bright&lt;/item&gt; &lt;item name="android:windowAnimationStyle"&gt;@android:style/Animation.OptionsPanel&lt;/item&gt; &lt;item name="android:moreIcon"&gt;@android:drawable/ic_menu_more&lt;/item&gt; &lt;item name="android:background"&gt;@null&lt;/item&gt; &lt;/style&gt; </code></pre> <p>So, the appearance of the text in the menu is in <code>@android:style/TextAppearance.Widget.IconMenu.Item</code><br> Now, in the definition of <a href="http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/styles.xml;h=d7b654e49809cb97a35682754b1394af5c8bc88b;hb=HEAD" rel="noreferrer">the styles</a> : </p> <pre><code>&lt;style name="TextAppearance.Widget.IconMenu.Item" parent="TextAppearance.Small"&gt; &lt;item name="android:textColor"&gt;?textColorPrimaryInverse&lt;/item&gt; &lt;/style&gt; </code></pre> <p>So now we have the name of the color in question, if you look in the color folder of the resources of the system : </p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:state_enabled="false" android:color="@android:color/bright_foreground_light_disabled" /&gt; &lt;item android:state_window_focused="false" android:color="@android:color/bright_foreground_light" /&gt; &lt;item android:state_pressed="true" android:color="@android:color/bright_foreground_light" /&gt; &lt;item android:state_selected="true" android:color="@android:color/bright_foreground_light" /&gt; &lt;item android:color="@android:color/bright_foreground_light" /&gt; &lt;!-- not selected --&gt; &lt;/selector&gt; </code></pre> <p>Finally, here is what you need to do : </p> <p>Override "TextAppearance.Widget.IconMenu.Item" and create your own style. Then link it to your own selector to make it the way you want. Hope this helps you. Good luck!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload