摘要:
自己的Fragment继承DialogFragment,在onCreateDialog中设置AlertDialog,当用AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());builder.setView(getLayoutInflater(savedInstanceState).inflate(R.layout.my_dialog,null));来取得自己定义好的layout时,会报java.lang.StackOverflowError错。用下面的方法就没有问题:builder.setView(((Layo 阅读全文