I have an Activity in the layout of which the dataset is displayed. From this Activity, several different DialogFragments are launched that make changes to the existing data set. After making changes, I need to process them somehow in order to adjust the display. So, how to execute any code after completing a DialogFragment ?

  • You set the listeners to the button presses in the dialog. Here in them and perform the necessary actions. - eugeneek
  • @eugeneek, how? For example, I need to execute .scrollToPosition(position) for mRecyclerView , which is in the Activity . How to reach him from DialogFragment ? - kulikovman
  • 2
    With the help of callbacks . - eugeneek
  • @eugeneek, thanks for the comment. The first link turned out to be exactly what I needed) - kulikovman

0