简体   繁体   中英

Refresh first fragment data

I have One Activity ( MainActivity ). It have two fragment( NewsTiltleFragment & NewsDetilsFragment ). User lanch the app NewsTitleFragment is displayed.When user choose particular news title it shoud navigate NewsDetilsFragment. when user return comeback to NewsTiltleFragment at that time i need to refresh the news.

Someone help me to solve this.

It depends on what you want to refresh.

There is way of broadcast receiver and the easier method is just call whatever you want to refresh in onResume() Method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM