title: How to change the background of Android Alert Dialog Title
body: <p>I want to change the background of the Alert dialog. I have tried following code piece to do so:</p>
  
  <pre><code> &lt;style name="Theme.AlertDialog" parent="@android:style/Theme.Holo.Light.Dialog"&gt;
          &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:textColor"&gt;#659F26&lt;/item&gt;
          &lt;item name="android:windowTitleStyle"&gt;@style/Theme.AlertDialog.Title&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="Theme.AlertDialog.Title" parent="@android:style/TextAppearance.DialogWindowTitle"&gt;
          &lt;item name="android:background"&gt;@drawable/cab_background_top_example&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>Java Code:</p>
  
  <pre><code>ContextThemeWrapper ctw = new ContextThemeWrapper( this, R.style.Theme_AlertDialog);
  final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(ctw);
  
  alertDialogBuilder.setTitle(getResources().getString(R.string.confirmation));   
  alertDialogBuilder.setMessage(getResources().getString(R.string.msg));       
  alertDialogBuilder.show();
  </code></pre>
  
  <p>My app is showing dialog like this:</p>
  
  <p><img src="https://i.stack.imgur.com/U2Dfb.png" alt="enter image description here"></p>
  
  <p>while i want it to look like:</p>
  
  <p><img src="https://i.stack.imgur.com/GvBhR.png" alt="enter image description here"></p>
  
  <p>Please suggest, what i am doing wrong.</p>