标签:DialogFragment

Android DialogFragment生命周期show->onCreateView

Android DialogFragment生命周期show->onCreateView

DialogFragment.show显示的生命周期是:先执行show()方法,再执行onCreateView()方法,若有如下操作: mActivityDialogFragment.show(((FragmentActivity) mActivity).getSupportFragmentMana

Joe.Ye Joe.Ye 2023-03-18
0 0 0
DialogFragment调用show()报Can not perform this action after onSaveInstanceState的解决办法

DialogFragment调用show()报Can not perform this action after onSaveInstanceState的解决办法

参考文章 使用自定义DialogFragment出现IllegalStateException: Can not perform this action after onSaveInstanceState异常 Fragment Or DialogFragment Can not perform t

Joe.Ye Joe.Ye 2023-02-26
0 0 0