change title color of alertDialog on below android 5.0
<p>I had created an <code>AlertDialog</code> and wanted to change the title color of AlertDialog but getting failed in every attempt. It works very fine on <code>Android 5.0</code> and above with title color as black but when it runs below Android 5.0, it's title color get's changed to white, i had used style and many other sources from internet but failed, my code is as follows,</p>
<pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(context);
    builder.setMessage(msg)
            .setCancelable(true)
            .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
                @Override
                public void onClick(DialogInterface dialog, int id) {
                    dialog.dismiss();
                }
            });

    final AppCompatDialog dialog = builder.create();
    dialog.setTitle(&quot;VALIDATION_TITLE error&quot;);
    dialog.setCancelable(false);
    dialog.show();
</code></pre>
<p>My issue get's solved by following line,</p>
<pre><code>dialog.setTitle( Html.fromHtml(&quot;&lt;font color='#FF7F27'&gt;Set IP Address&lt;/font&gt;&quot;))
</code></pre>
<p>but i don't want to use this, anyhelp would be greatly appreciated. You can see the screenshot of my dialog from this <a href="https://chat.stackoverflow.com/rooms/104538/discussion-between-vikram-singh-and-droidhacker">chat link</a></p>