DialogFragment callback on orientation change

前端 未结 5 461
执笔经年
执笔经年 2021-02-01 20:40

I\'m migrating my dialogs, currently using Activity.showDialog(DIALOG_ID);, to use the DialogFragment system as discussed in the android reference.

5条回答
  •  深忆病人
    2021-02-01 21:39

    First, call setTargetFragment from FragmentParent to start dialogFragment. In dialogFragment use getTargetFragment to callback fragment and return data. All data result will excute in onactivityresult of FragmentParent

    follow this link: Receive result from DialogFragment

提交回复
热议问题