How to transfer some data to another Fragment?
How to pass values between Fragments
Communicating with the Activity - Android Developer

需要特別注意的是,概念上是透過 Associated Activity 去完成這件事,而不是兩個 Fragments 互傳。

Often you will want one Fragment to communicate with another, for example to change the content based on a user event. All Fragment-to-Fragment communication is done through the associated Activity. Two Fragments should never communicate directly.

Comments

comments powered by Disqus
Copyright © 2013 Andro Chen
Powered by Logdown and Greyshade
Favicon from The Noun Project