Is it possible to launch a DialogFragment from a Preference in a PreferenceActivity?

后端 未结 1 322
别跟我提以往
别跟我提以往 2021-01-11 12:37

I am converting my app to use the v4 compatibility package and fragments. I have done well so far, but I need to launch a DialogFragment from a preference click in a P

相关标签:
1条回答
  • 2021-01-11 13:19

    Not without jumping through hoops.

    You could make a very simple activity with the sole purpose of launching the DialogFragment. If you do this you will need to finish() that activity when the DialogFragment dialog has been dismissed.

    0 讨论(0)
提交回复
热议问题