2011-06-22 73 views

回答

6

嘗試調用onCreate(...),而不是在構造函數中。

+1

@Hoochwo看看FragmentDialog(支持)的.java在API演示哪些是你想要的。 – PJL

+0

我測試它,在我的情況下,它只能在constructor.public BaseDialogFragment()中調用樣式setStyle(DialogFragment.STYLE_NORMAL,R.style.Theme_AlertDialog); } –