How to execute action after DialogFragment positive button clicked

前端 未结 4 466
梦谈多话
梦谈多话 2020-12-30 12:19

I created the following DialogFragment deriving it from the Android documentation:

public class PayBillDialogFragment extends DialogFragment{

    @Ov         


        
4条回答
  •  长情又很酷
    2020-12-30 12:49

    The List Fragment would be using an Adapter to show elements. The adapter requires input in the form of some Collection. So, what you can do is, when the user presses say ok button on dialog fragment and you communicate that back to List Fragment, you can remove that particular element from the Collection and again set the Adapter of List Fragment with modified collection.

提交回复
热议问题