如何为 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();
}
}
在这个位置提出的答案没有帮助。 如何设置DialogFragment的宽高?