public override View GetSampleContent(Android.Content.Context con) { if (IsTabletDevice(con)) { tab = new Carousel_Tab(); contextTablet = con; return(tab.GetSampleContent(con)); } else { mobile = new Carousel_Mobile(); return(mobile.GetSampleContent(con)); } }
public Carousel() { phoneView = new Carousel_Mobile(); this.AddSubview(phoneView); this.OptionView = phoneView.option; }