Note that there are some explanatory texts on larger screens.

plurals
  1. POXML attributes for text color of alert dialog
    primarykey
    data
    text
    <p>I'm applying a theme:</p> <pre><code> &lt;style name="myAlertTheme" parent="@android:style/AlertDialog"&gt; &lt;item name="android:textColor"&gt;#ff000000&lt;/item&gt; &lt;/style&gt; &lt;style name="RadioButton" parent="@android:style/Widget.CompoundButton.RadioButton"&gt; &lt;item name="android:textColor"&gt;#ff000000&lt;/item&gt; &lt;/style&gt; &lt;style name="HSDroidStyle" parent="android:Theme"&gt; &lt;item name="android:background"&gt;#ffd3d3d3&lt;/item&gt; &lt;item name="android:textColor"&gt;#ff000000&lt;/item&gt; &lt;item name="android:textSize"&gt;20dp&lt;/item&gt; &lt;item name="android:radioButtonStyle"&gt;@style/RadioButton&lt;/item&gt; &lt;/style&gt; </code></pre> <p>But when I create an Alert, the text shows up as white instead of black. To create the alert I'm using:</p> <pre><code> AlertDialog alertDialog = new AlertDialog.Builder( new ContextThemeWrapper(act, R.style.myAlertTheme)).create(); alertDialog.setTitle(title); alertDialog.setMessage(msg); alertDialog.setIcon(android.R.drawable.ic_dialog_alert); alertDialog.setButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { if (exitOnFailure) mainAct.finish(); return; } }); alertDialog.show(); </code></pre> <p>Now the "OK" in the button changes if I change the size in the myAlertTheme, but not the title or the text. So I'm guessing that there is some other textColor attribute that addresses this. I've tried most of the ones I can think of, but none of them work.</p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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