public override View GetSampleContent(Android.Content.Context con)
 {
     if (IsTabletDevice(con))
     {
         AutoComplete_Tab tab = new AutoComplete_Tab();
         return(tab.GetSampleContent(con));
     }
     else
     {
         mobile = new AutoComplete_Mobile();
         return(mobile.GetSampleContent(con));
     }
 }
Exemple #2
0
 public AutoComplete()
 {
     if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
     {
         this.AddSubview(new AutoComplete_Tablet());
     }
     else
     {
         phoneView = new AutoComplete_Mobile();
         this.AddSubview(phoneView);
         this.OptionView = phoneView.option;
     }
 }