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

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

python - Pygame screen.blit not working -

c# - Web API response xml language -