public Rating() { if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) { this.AddSubview(new Rating_Tablet()); } else { phoneView = new Rating_Mobile(); this.AddSubview(phoneView); this.OptionView = phoneView.option; } }
public override View GetSampleContent(Android.Content.Context con) { if (IsTabletDevice(con)) { Rating_Tab tab = new Rating_Tab(); return(tab.GetSampleContent(con)); } else { mobile = new Rating_Mobile(); return(mobile.GetSampleContent(con)); } }