dimanche 12 avril 2015

How to both Fragment and list fragment in Tabbed View


Vote count:

0




I have a mainActivity which extends Fragment activity, I have created 3 Tabs and each of it is a fragment but now, I need one of the fragment to be a list Fragment, how do I do this?



@Override
public Fragment getItem(int index) {

switch (index) {
case 0:
// Top Rated fragment activity
return new frag1();
case 1:
// Top Rated fragment activity
return new frag2();
case 2:
return new frag3();


}

return null;

}


Here, I want the 3rd One to be a list fragment



asked 32 secs ago

Vis

6






How to both Fragment and list fragment in Tabbed View

Aucun commentaire:

Enregistrer un commentaire