public TreePagerAdapter(Context context, TreeCatalog treeCatalog, List <Offer> OfferList, TabMenuActivity parent) { this.context = context; this.treeCatalog = treeCatalog; this.offerList = OfferList; this.parentActivity = parent; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Locate the ViewPager: ViewPager viewPager = FindViewById <ViewPager>(Resource.Id.viewpager); // Instantiate the tree catalog: treeCatalog = new TreeCatalog(); // Set up the adapter for the ViewPager viewPager.Adapter = new TreePagerAdapter(this, treeCatalog); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); // Locate the ViewPager: ViewPager viewPager = FindViewById<ViewPager>(Resource.Id.viewpager); // Instantiate the tree catalog: treeCatalog = new TreeCatalog(); // Set up the adapter for the ViewPager viewPager.Adapter = new TreePagerAdapter(this, treeCatalog); }
// Load the adapter with the tree catalog at construction time: public TreePagerAdapter(Context context, TreeCatalog treeCatalog) { this.context = context; this.treeCatalog = treeCatalog; }
// Load the adapter with the tree catalog at construction time: public TreePagerAdapter (Context context, TreeCatalog treeCatalog) { this.context = context; this.treeCatalog = treeCatalog; }