Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Migrate from activity to fragment

I'm migrating an activity to a fragment. The fragment will ultimately be placed in a tab page.

I have copied the "grouped list" from the Conference example. The listview was on an activity. I am now moving same to a fragment. The method OnViewModelSet() does not exist in the view. Where am I supposed to moved the code contained in OnViewModelSet() when using a fragment?

like image 801
Telemat Avatar asked Jan 04 '14 17:01

Telemat


1 Answers

Here is a very good talk on this topic by Corey Latislaw. She gave it at DroidCon London 2012.

like image 167
Snicolas Avatar answered Oct 10 '22 20:10

Snicolas