示例#1
0
        public Rotator()
        {
            //if((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            //{
            //	this.AddSubview(new Rotator_Tablet());

            //}
            //else{
            phoneView = new Rotator_Mobile();
            this.AddSubview(phoneView);
            //}
        }
示例#2
0
 public override View GetSampleContent(Android.Content.Context con)
 {
     if (IsTabletDevice(con))
     {
         Rotator_Tab tab = new Rotator_Tab();
         return(tab.GetSampleContent(con));
     }
     else
     {
         mobile = new Rotator_Mobile();
         return(mobile.GetSampleContent(con));
     }
 }