title: Custom dialog with the look and feel of a default one - is it possible?
body: <p><em>For clarification</em>: I want all the custom dialogs to look like system default dialogs: for example, when user is using htc sense, the dialog should match htc sense dialog style, when user is using samsung with official customasation, the dialog should look like it. I want to go as native as possible. I am familiar that there are possibilities to modify the dialog, but I'm looking for a way to reference to the style the system uses and create a dialog with that.  </p>
  
  <p><strong>What I have:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Yoxfd.png" alt="enter image description here"></p>
  
  <p><strong>What I would like to achieve:</strong> </p>
  
  <p><img src="https://i.stack.imgur.com/XcXUG.png" alt="enter image description here"></p>
  
  <p>Code for my dialog layout which I invoke with <code>dialog.setContentView(...)</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  style="@android:style/Theme.Dialog"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" &gt;
  
  &lt;ListView
      android:id="@+id/listView1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="10dip"
      android:layout_marginRight="10dip" &gt;
  &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>As you can see setting the <code>style="@android:style/Theme.Dialog</code> isn't helping. Any ideas what might be helping?</p>
  
  <p><em>(I am familiar that there is already such a question: <a href="https://stackoverflow.com/questions/6746535/android-custom-dialog-but-with-look-and-feel-of-default-one">https://stackoverflow.com/questions/6746535/android-custom-dialog-but-with-look-and-feel-of-default-one</a> but there isn't an accepted answer)</em></p>