Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here's an example that might help (it might not work verbatim as I've tweaked it to simplify it, and to showcase some of the other things you can do).</p> <p>In res\values\styles.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;style name="TextColorForTheme"&gt; &lt;item name="android:textColor"&gt;@color/red&lt;/item&gt; &lt;/style&gt; &lt;/resources&gt; </code></pre> <p>In res\values\themes.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;style name="myTheme" parent="@style/android:Theme"&gt; &lt;item name="android:listSeparatorTextViewStyle"&gt;@style/TextColorForTheme&lt;/item&gt; &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt; &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt; &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt; &lt;/style&gt; &lt;/resources&gt; </code></pre> <p>Then in your AndroidManifest.xml, set either the whole application, or individual Activities to use that theme:</p> <pre><code> &lt;application android:theme="@style/myTheme" &lt;snip&gt; &lt;activity android:theme="@style/myTheme" &lt;snip&gt; </code></pre> <p>Alternatively, you can set the theme in the code for your Java Activity:</p> <pre><code> @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setTheme(R.style.myTheme); &lt;snip&gt; </code></pre>
 

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