A project to demo how to pass the data and state of an activity to its direct fragments and nested fragments without using any callbacks or messages. By introducing base classes for an activity and its fragements, all fragments in an activity can be tracked through weak refrence. An activity's data and state can be passed to its fragements by invoking the postData method defined in the base actvity and the base fragment.
-
Notifications
You must be signed in to change notification settings - Fork 0
A project to show how to pass an Android activity state and data to all its child fragments.
License
syang7081/android_activity_fragement_data
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A project to show how to pass an Android activity state and data to all its child fragments.
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published