简体   繁体   中英

is it possible update ui from fragment from another fragment onclick in android

I am adding two fragment in one activity .I am setting onclick listener in fragment button view.In fragment click listener how to update the another fragment view in android

Thanks for your help

you need to contact the activity first which will contact the second fragment. and also read this article on how to do it...

http://developer.android.com/guide/topics/fundamentals/fragments.html#CommunicatingWithActivity

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