0

Could you tell me the way to refresh data on RecycleView on Fragment. On DialogFragment, there are some TextInputEditText, and users could change the data. After users closed DialogFragment with dismiss(), RecycleView isn't changed.

Tried to use Intetnt back to RecycleView, but I think it is not correct way. My environment is JAVA, Android Studio.

Gen
  • 1
  • 1

2 Answers2

0

You can use StartActivityForResult, it is the best way to get you modified data, here's a link to documentation and how to integrated it enter link description here

Mokhtar Abdelhalim
  • 232
  • 1
  • 3
  • 9
0

You must notify all reorganized observer that the data set is altered to get visual effects using notifyDataSetChanged().More details on notifyDataSetChanged()

This link also shows the use of notifyDataSetChanged()