android - How to specify a minimum width for FragmentDialog? -


how specify minimum width fragmentdialog?

class testimage extends dialogfragment{      public dialog oncreatedialog(bundle savedinstancestate) {          alertdialog.builder adb = new alertdialog.builder(getactivity());          tablelayout table = new tablelayout(getactivity());          tablerow row = new tablerow(getactivity());          row.addview(new imagebutton(getactivity()));          row.addview(new imagebutton(getactivity()));          table.addview(row);          adb.setview(table);          return adb.create();      }  } 

answer proposed in location not help. how set dialogfragment's width , height?

set android:minwidth="300dp" in xml.

check http://developer.android.com/guide/components/fragments.html#adding put it.


Comments