public static SecondListFragment newInstance(int exampleId) { SecondListFragment f = new SecondListFragment(); // Supply index input as argument. Bundle args = new Bundle(); args.PutInt("mExampleId", exampleId); f.Arguments = args; return f; }
public override Java.Lang.Object InstantiateItem(ViewGroup container, int position) { // create a new listview ListView listView = new ListView(context); IListAdapter adapter = new SecondListFragment(pages_strings[position], context); // bind the adapter to the listview listView.Adapter = adapter; (container as ViewPager).AddView(listView, 0); return listView; }