title: How to disable DialogFragment to resize once dialog is displayed?
body: <p>I'm using a listview in a DialogFragment contained in a LinearLayout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:padding="@dimen/dialog_main_margin" &gt;
  
  &lt;com.modelmakertools.simplemind.DragSortListView
      android:id="@+id/drag_list_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>where DragSortListView is based on a 3rd party ListView descendant that allows rearranging items using a draghandle image.</p>
  
  <p>All works OK when this code is used in a (full screen) activity, but when used in a android.support.v4.app.DialogFragment, dragging an item causes the dialog + listview combi to continuesly update the dialog size. This causes dragging to be extremely slow and I see a lot of LogCat messages:</p>
  
  <pre><code>06-06 15:37:07.833: I/Choreographer(17281): Skipped 166 frames!  The application may be doing too much work on its main thread.
  </code></pre>
  
  <p>To locate the source of the problem, I changed the width and height of the listview to a fixed 400dp (rather than match_parent / wrap_content). Fixing the size completely eliminates the problem.
  Hence my question: is there a way to avoid the dialog fragment to adjust its size once it has been layed out once?</p>