How to transfer from activity to fragment

I transfer the action to the fragment. Ultimately, the fragment will be placed on the tab.

I copied the "grouped list" from the sample conference. The list was dedicated to activity. Now I move on to the fragment. The method OnViewModelSet()does not exist in the view. Where should I move the code contained in OnViewModelSet()when using the snippet?

+4
source share
2 answers

Here is a very good discussion on this subject by Corey Latislav. She gave it to DroidCon London 2012.

+6
source

.

.

0

All Articles