Android fragment onResume() refresh data -


i have fragment recyclerview.

fragment populates recyclerview items (a list of users) sqlite , displays in oncreateview() method, , works fine.

when go fragment b , add new user , hit done, go fragment a, should "refresh" users list.

i tried achieving through moving code oncreateview() onresume(). but, have no access view on oncreateview().

what think best approach on handling this?

thanks!

so, @ first suppose should update data on list, 1 give adapter. if won't help, try create new adapter , bind recyclerview in onresume() method.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -