예제 #1
0
 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;
     }
 }
예제 #2
0
 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));
     }
 }