简体   繁体   English

更新/通知fragmenPagerAdapter中的其他片段

[英]Update/Notify other fragment in fragmenPagerAdapter

I have multiple fragments inside FragmentPagerAdapter and I need to update the other fragments based upon operation performed on particular fragment. 我在FragmentPagerAdapter内有多个片段,我需要根据对特定片段执行的操作来更新其他片段。 how should I do it 我应该怎么做

Use local broadcast/ Eventbus to send notification to particular fragment. 使用本地广播/事件总线向特定片段发送通知。 http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html http://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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