[英]Android / Fragment - How do I pass parameters of the Last Fragment and send to Previous Fragment?
您的活动可以在“活动”上实现自定义侦听器接口,并在片段中使用对该接口的引用来将通信传递回去。
You can send a broadcast when you hit the back button in Fragment B to Fragment A with the parameters you need put in the bundle, and have broadcast receiver on the Fragment A. 当您按片段B中的后退按钮向片段A发送广播时,您需要使用捆绑中需要的参数,并在片段A上具有广播接收器。
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.