title: How to build a custom Dialog "Button area"
body: <p>I'm trying to get a custom Dialog to work. It should have no Title, a basic TextMessage and my Custom Layout where normally Buttons appear. 
  I tried to accomplish this with an AlertDialog.Builder, extending Dialog, call methods on the Dialog and still not get the expected result. </p>
  
  <p>This is the layout, I Like to use as a custom ButtonArea (layout/dialog_footer):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" &gt;
  
      &lt;CheckBox
          android:id="@+id/dialog_checkbox"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/never_show_again"
          android:textColor="@color/black"
          android:visibility="gone"
          android:background="@color/dialog_button_background"/&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/dialog_checkbox"
          android:layout_alignWithParentIfMissing="true"
          android:orientation="horizontal"
          android:background="@color/dialog_button_background"
          android:paddingBottom="-10dip"&gt;
  
          &lt;Button
              android:id="@+id/dialog_btn_positive"
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight=".5"
              android:text="@string/ok"
              android:gravity="center"
              android:visibility="gone"
              /&gt;
  
          &lt;Button
              android:id="@+id/dialog_btn_negative"
              android:layout_width="0dip"
              android:layout_height="wrap_content"
              android:layout_weight=".5"
              android:text="@string/btn_cancel" 
              android:visibility="gone" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The simplest try goes like this:</p>
  
  <pre><code>AlertDialog.Buiilder builder = new AlertDialog.Builder(context);
  builder.setMessage("my Message");
  Dialog dialog = builder.create();
  
  //builder has `setView for Message or setCustomTitle, but no setCustomFooter
  LayoutInflater inflater = LayoutInflater.from(context);
  View footer = inflater.inflate(R.layout.dialog_footer);
  
  //either NullPointer Exception
  dialog.addContentView(footer, footer.getLayoutParams);
  //or AndroidRuntimeException (requestFeature() must be called befoire adding content)
  dialog.addContentView(footer, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
  </code></pre>
  
  <p>If I try to emulate the "MessageArea" by putting a TextView on Top of my Layout it works, but has very ugly black borders at the bottom (I guess its the custom Dialog-Theme). </p>
  
  <p>Whats the best way to keep the "look and feel" of a System Dialog, but replace the Buttons with my own View and handle anything myself? </p>