Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
//            Log.Debug(TAG, "SplashActivity.OnCreate");
//
//            // creating LinearLayout
//            LinearLayout linLayout = new LinearLayout(this);
//            // specifying vertical orientation
//            linLayout.Orientation = Orientation.Vertical;
//            // creating LayoutParams
//            ViewGroup.LayoutParams linLayoutParam = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
//
//            LinearLayout.LayoutParams parameters = new LinearLayout.LayoutParams(100, 100);
//            parameters.Gravity = GravityFlags.Bottom | GravityFlags.CenterHorizontal;
//
            // Hack to remove licence message
            SfBusyIndicator busyIndicator = new SfBusyIndicator(this);
//            busyIndicator.AnimationType = AnimationTypes.Ball;
//            busyIndicator.TextColor = Color.Azure;
//            busyIndicator.Title = "Loading...";
//            busyIndicator.ViewBoxHeight = 100;
//            busyIndicator.ViewBoxWidth = 100;
//            busyIndicator.IsBusy = true;
//            busyIndicator.LayoutParameters = parameters;
//
//            linLayout.AddView(busyIndicator);
//            SetContentView(linLayout, linLayoutParam);
        }
Пример #2
0
 protected override void OnAttachedTo(ContentPage bindable)
 {
     base.OnAttachedTo(bindable);
     this.schedule            = bindable.Content.FindByName <SfSchedule>("schedule");
     this.busyIndicator       = bindable.Content.FindByName <SfBusyIndicator>("busyindicator");
     this.schedule.MoveToDate = new DateTime(2017, 06, 15);
     this.WireEvents();
 }
Пример #3
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            handler = new Handler();
            LinearLayout layout   = new LinearLayout(context);
            TextView     textView = new TextView(context);

            textView.TextSize = 16;
            textView.SetPadding(10, 20, 0, 0);
            textView.SetHeight(90);

            textView.Text = "Primary Agricultural Activity of USA";
            layout.AddView(textView);
            textView.Gravity = Android.Views.GravityFlags.Top;

            layout.Orientation = Orientation.Vertical;
            maps = new SfMaps(context);

            ShapeFileLayer layer = new ShapeFileLayer();

            layer.Uri = "usa_state.shp";

            layer.ShapeIdTableField = "STATE_NAME";
            layer.ShapeIdPath       = "Name";
            layer.DataSource        = GetDataSource();
            layer.ShapeSettings.ShapeColorValuePath = "Type";
            layer.ShapeSettings.ShapeFill           = Color.ParseColor("#A9D9F7");
            SetColorMapping(layer.ShapeSettings);

            LayerCustomTooltipSetting layerCustomTooltip = new LayerCustomTooltipSetting(context);

            layerCustomTooltip.ShowTooltip = true;
            layer.TooltipSettings          = layerCustomTooltip;

            layer.LegendSetting = new LegendSetting()
            {
                ShowLegend = true, ItemMargin = 0
            };

            maps.Layers.Add(layer);

            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");

            layout.AddView(sfBusyIndicator);
            Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
            {
                layout.RemoveView(sfBusyIndicator);
                layout.AddView(maps);
            });
            handler.PostDelayed(run, 100);

            return(layout);
        }
		public AnalyzingStockMarketsChartPage ()
		{
			InitializeComponent ();

			SfBusyIndicator busyIndicator = new SfBusyIndicator ();

			Chart.Opacity = .25;
			//Chart settings
			BackgroundColor = MyColors.MidnightBlue;

			//Busy Indicator
			busyIndicator.ViewBoxWidth = 150;
			busyIndicator.ViewBoxHeight = 150;
			busyIndicator.HeightRequest = 50;
			busyIndicator.WidthRequest = 50;
			busyIndicator.BackgroundColor = MyColors.MidnightBlue;
			busyIndicator.AnimationType = AnimationTypes.DoubleCircle;
			busyIndicator.TextColor = MyColors.Turqoise;
			busyIndicator.IsVisible = true;
			busyIndicator.IsBusy = true;
			busyIndicator.HorizontalOptions = LayoutOptions.Center;
			busyIndicator.VerticalOptions = LayoutOptions.Center;

			relativeLayout.Children.Add (busyIndicator, Constraint.Constant (App.ScreenWidth / 2), Constraint.Constant (App.ScreenHeight / 3), Constraint.Constant (10), Constraint.Constant (10));

			//get data
			Task.Run (() => {
				Device.BeginInvokeOnMainThread (
					() => {
						var indicators = new AnalyzingStockMarkets.GetStockMarketIndicators ();

						var cd = indicators.ChartData;
						var hd = indicators.HistoricalData;

						BindingContext = new AnalyzingStockMarketsViewModel (cd);


						var vm = new AnalyzingStockMarketsViewModel (cd);
						first.Label = vm.DataArray [0] [0].Name;
						second.Label = vm.DataArray [1] [1].Name;
						third.Label = vm.DataArray [2] [2].Name;
						fourth.Label = vm.DataArray [3] [3].Name;
						fifth.Label = vm.DataArray [4] [4].Name;
						sixth.Label = vm.DataArray [5] [5].Name;

						//turn off busy indicator
						busyIndicator.IsVisible = false;
						busyIndicator.IsBusy = false;

						Chart.FadeTo (1, 500, Easing.CubicIn);

					});

			});


		}
Пример #5
0
        public DataLabels()
        {
            smartLabelMode      = new UIPickerView();
            intersectActionMode = new UIPickerView();

            SFMap maps = new SFMap();

            view          = new UIView();
            view.Frame    = new CGRect(0, 0, 300, 400);
            busyindicator = new SfBusyIndicator();
            busyindicator.ViewBoxWidth  = 75;
            busyindicator.ViewBoxHeight = 75;
            busyindicator.Foreground    = UIColor.FromRGB(0x77, 0x97, 0x72); /*#779772*/
            busyindicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeSlicedCircle;
            view.AddSubview(busyindicator);

            NSTimer.CreateScheduledTimer(TimeSpan.FromSeconds(0.3), delegate {
                if (isDisposed)
                {
                    return;
                }
                maps.Frame = new CGRect(Frame.Location.X, 60, Frame.Size.Width - 6, Frame.Size.Height - 60);

                view.AddSubview(maps);
            });

            layer = new SFShapeFileLayer();

            layer.Uri               = (NSString)NSBundle.MainBundle.PathForResource("usa_state", "shp");
            layer.ShapeIDPath       = (NSString)"Name";
            layer.ShapeIDTableField = (NSString)"STATE_NAME";
            layer.ShowMapItems      = true;
            layer.DataSource        = GetDataSource();

            SFShapeSetting shapeSettings = new SFShapeSetting();

            shapeSettings.ColorValuePath = (NSString)"Type";
            shapeSettings.ValuePath      = (NSString)"Name";
            shapeSettings.Fill           = UIColor.FromRGB(169, 217, 247);
            SetColorMapping(shapeSettings);
            layer.ShapeSettings = shapeSettings;

            layer.TooltipSettings.ShowTooltip = true;
            layer.TooltipSettings.ValuePath   = (NSString)"Name";

            SFDataLabelSetting dataLabelSetting = new SFDataLabelSetting();

            dataLabelSetting.SmartLabelMode     = IntersectAction.Trim;
            dataLabelSetting.IntersectionAction = IntersectAction.None;
            layer.DataLabelSettings             = dataLabelSetting;

            maps.Layers.Add(layer);
            AddSubview(view);
            CreateOptionView();
            this.OptionView = option;
            maps.Delegate   = new MapsDataLabelsDelegate(this);
        }
Пример #6
0
        public Sublayer()
        {
            SFMap maps = new SFMap();

            view          = new UIView();
            view.Frame    = new CGRect(0, 0, 300, 400);
            busyindicator = new SfBusyIndicator();
            busyindicator.ViewBoxWidth  = 75;
            busyindicator.ViewBoxHeight = 75;
            busyindicator.Foreground    = UIColor.FromRGB(0x77, 0x97, 0x72); /*#779772*/
            busyindicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeSlicedCircle;
            view.AddSubview(busyindicator);
            label = new UILabel();
            label.TextAlignment = UITextAlignment.Center;
            label.Text          = "Rivers in Australia";
            label.Font          = UIFont.SystemFontOfSize(18);
            label.Frame         = new CGRect(0, 0, 400, 40);
            label.TextColor     = UIColor.Black;
            view.AddSubview(label);

            NSTimer.CreateScheduledTimer(TimeSpan.FromSeconds(0.3), delegate {
                if (isDisposed)
                {
                    return;
                }
                maps.Frame = new CGRect(Frame.Location.X, 60, Frame.Size.Width - 6, Frame.Size.Height - 60);

                view.AddSubview(maps);
            });

            SFShapeFileLayer layer = new SFShapeFileLayer();

            layer.Uri = (NSString)NSBundle.MainBundle.PathForResource("australia", "shp");

            SFShapeSetting shapeSettings = new SFShapeSetting();

            shapeSettings.StrokeThickness = 1;
            shapeSettings.StrokeColor     = UIColor.White;
            shapeSettings.Fill            = UIColor.FromRGB(172, 249, 247);
            layer.ShapeSettings           = shapeSettings;

            SFShapeFileLayer subLayer = new SFShapeFileLayer();

            subLayer.Uri = (NSString)NSBundle.MainBundle.PathForResource("river", "shp");
            SFShapeSetting subLayerSettings = new SFShapeSetting();

            subLayerSettings.StrokeThickness = 2;
            subLayerSettings.Fill            = UIColor.FromRGB(0, 168, 204);
            subLayer.ShapeSettings           = subLayerSettings;

            layer.Sublayers.Add(subLayer);

            maps.Layers.Add(layer);
            AddSubview(view);
            maps.Delegate = new MapsSublayerDelegate(this);
        }
Пример #7
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            handler = new Handler();
            LinearLayout layout = new LinearLayout(context);

            layout.Orientation = Orientation.Vertical;
            maps         = new SfMaps(context);
            currentToast = new Toast(context);
            ShapeFileLayer layer = new ShapeFileLayer();

            layer.Uri            = "usa_state.shp";
            layer.ShapeSelected += (object sender, ShapeFileLayer.ShapeSelectedEventArgs e) => {
                JSONObject data = (JSONObject)e.P0;
                if (data != null)
                {
                    if (currentToast != null)
                    {
                        currentToast.Cancel();
                    }
                    currentToast = Toast.MakeText(context, data.Get("Name") + "\n" + data.Get("Type"), ToastLength.Short);
                    currentToast.Show();
                }
            };
            layer.EnableSelection   = true;
            layer.ShapeIdTableField = "STATE_NAME";
            layer.ShapeIdPath       = "Name";
            layer.DataSource        = GetDataSource();
            layer.LegendSetting     = new LegendSetting()
            {
                ShowLegend = true
            };
            layer.ShapeSettings.ShapeStrokeThickess = 2;
            SetColorMapping(layer.ShapeSettings);
            layer.ShapeSettings.ShapeColorValuePath = "Type";
            maps.Layers.Add(layer);

            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");
            //sfBusyIndicator.SetBackgroundColor(Color.ParseColor("#779772"));

            layout.AddView(sfBusyIndicator);
            Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
            {
                layout.RemoveView(sfBusyIndicator);
                layout.AddView(maps);
            });
            handler.PostDelayed(run, 100);

            return(layout);
        }
		public CompareMsftGbmChartPage ()
		{
			InitializeComponent ();

			Chart.Opacity = .25;

			SfBusyIndicator busyIndicator = new SfBusyIndicator ();

			Task.Run (() => {	
				SimulatingAndAnalyzingAssetPrices.GetMsftCsvData msftData = new SimulatingAndAnalyzingAssetPrices.GetMsftCsvData ();

				Device.BeginInvokeOnMainThread (
					() => {
						//set data
						data = msftData.MsftActual;
						data1 = msftData.MsftSimulated;

						//turn of busy indicator
						busyIndicator.IsVisible = false;
						busyIndicator.IsBusy = false;

						//set binding context
						//TODO: Nullcheck
						Chart.FadeTo (1, 500, Easing.CubicIn);
						BindingContext = new DateTimeDoubleViewModel (data, data1);
					});
			});

			Chart.Opacity = .25;

			//Busy Indicator
			busyIndicator.ViewBoxWidth = 150;
			busyIndicator.ViewBoxHeight = 150;
			busyIndicator.HeightRequest = 50;
			busyIndicator.WidthRequest = 50;
			busyIndicator.BackgroundColor = MyColors.MidnightBlue;
			busyIndicator.AnimationType = AnimationTypes.DoubleCircle;
			busyIndicator.TextColor = MyColors.Turqoise;
			busyIndicator.IsVisible = true;
			busyIndicator.IsBusy = true;
			busyIndicator.HorizontalOptions = LayoutOptions.Center;
			busyIndicator.VerticalOptions = LayoutOptions.Center;



			BackgroundColor = MyColors.MidnightBlue;
			series1.Color = MyColors.Turqoise;
			series2.Color = MyColors.Concrete;

			relativeLayout.Children.Add (busyIndicator, Constraint.Constant (App.ScreenWidth / 2), Constraint.Constant (App.ScreenHeight / 3), Constraint.Constant (10), Constraint.Constant (10));


		}
Пример #9
0
        public LoginViewModel()
        {
            busyIndicator = new SfBusyIndicator();

            apiService        = new ApiService();
            dialogService     = new DialogService();
            dataService       = new DataService();
            navigationService = new NavigationService();

            IsRemembered = true;
            //IsEnabled = true;
        }
		public KalmanRelationshipChartPage ()
		{
			InitializeComponent ();

			SfBusyIndicator busyIndicator = new SfBusyIndicator ();

			BackgroundColor = MyColors.MidnightBlue;

			Chart.Opacity = .25;

			relativeLayout.Children.Add (busyIndicator, Constraint.Constant (App.ScreenWidth/2), Constraint.Constant (App.ScreenHeight/3), Constraint.Constant (10), Constraint.Constant (10));

			//Busy Indicator
			busyIndicator.ViewBoxWidth = 150;
			busyIndicator.ViewBoxHeight = 150;
			busyIndicator.HeightRequest = 50;
			busyIndicator.WidthRequest = 50;
			busyIndicator.BackgroundColor = MyColors.MidnightBlue;
			busyIndicator.AnimationType = AnimationTypes.DoubleCircle;
			busyIndicator.TextColor = MyColors.Turqoise;
			busyIndicator.IsVisible = true;
			busyIndicator.IsBusy = true;
			busyIndicator.HorizontalOptions = LayoutOptions.Center;
			busyIndicator.VerticalOptions = LayoutOptions.Center;

			//get data
			Task.Run (() => {
				
				AnalyzingStockMarkets.GetStockMarketIndicators indicators = new AnalyzingStockMarkets.GetStockMarketIndicators ();

				var indexPoints = indicators.IndexPoints;
				var lines = indicators.Lines;	
				var vm = new KalmanRelationshipViewModel (indexPoints, lines);

				Device.BeginInvokeOnMainThread (
					() => {
						BindingContext = vm;

						Market0.Label = vm.Points [0] [0].Name;
						Market1.Label = vm.Points [1] [0].Name;
						Market2.Label = vm.Points [2] [0].Name;
						Market3.Label = vm.Points [3] [0].Name;
						Market4.Label = vm.Points [4] [0].Name;
						Market5.Label = vm.Points [5] [0].Name;	

						//turn off busy indicator
						busyIndicator.IsVisible = false;
						busyIndicator.IsBusy = false;

						Chart.FadeTo(1, 500, Easing.CubicIn);
					});
			});
		}
Пример #11
0
        public AnalyzingStockMarketsChartPage()
        {
            InitializeComponent();

            SfBusyIndicator busyIndicator = new SfBusyIndicator();

            Chart.Opacity = .25;
            //Chart settings
            BackgroundColor = MyColors.MidnightBlue;

            //Busy Indicator
            busyIndicator.ViewBoxWidth      = 150;
            busyIndicator.ViewBoxHeight     = 150;
            busyIndicator.HeightRequest     = 50;
            busyIndicator.WidthRequest      = 50;
            busyIndicator.BackgroundColor   = MyColors.MidnightBlue;
            busyIndicator.AnimationType     = AnimationTypes.DoubleCircle;
            busyIndicator.TextColor         = MyColors.Turqoise;
            busyIndicator.IsVisible         = true;
            busyIndicator.IsBusy            = true;
            busyIndicator.HorizontalOptions = LayoutOptions.Center;
            busyIndicator.VerticalOptions   = LayoutOptions.Center;

            relativeLayout.Children.Add(busyIndicator, Constraint.Constant(App.ScreenWidth / 2), Constraint.Constant(App.ScreenHeight / 3), Constraint.Constant(10), Constraint.Constant(10));

            //get data
            Task.Run(() => {
                Device.BeginInvokeOnMainThread(
                    () => {
                    var indicators = new AnalyzingStockMarkets.GetStockMarketIndicators();

                    var cd = indicators.ChartData;
                    var hd = indicators.HistoricalData;

                    BindingContext = new AnalyzingStockMarketsViewModel(cd);


                    var vm       = new AnalyzingStockMarketsViewModel(cd);
                    first.Label  = vm.DataArray [0] [0].Name;
                    second.Label = vm.DataArray [1] [1].Name;
                    third.Label  = vm.DataArray [2] [2].Name;
                    fourth.Label = vm.DataArray [3] [3].Name;
                    fifth.Label  = vm.DataArray [4] [4].Name;
                    sixth.Label  = vm.DataArray [5] [5].Name;

                    //turn off busy indicator
                    busyIndicator.IsVisible = false;
                    busyIndicator.IsBusy    = false;

                    Chart.FadeTo(1, 500, Easing.CubicIn);
                });
            });
        }
Пример #12
0
        //NSArray animationTypes = new NSArray ();

        public BusyIndicator_Mobile()
        {
            //BusyIndicator
            busyIndicator               = new SfBusyIndicator();
            busyIndicator.Foreground    = UIColor.FromRGB(36, 63, 217);
            busyIndicator.ViewBoxWidth  = 100;
            busyIndicator.ViewBoxHeight = 100;
            busyIndicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeBall;
            this.AddSubview(busyIndicator);

            mainPageDesign();
        }
Пример #13
0
 public OSM()
 {
     view       = new UIView();
     view.Frame = new CGRect(0, 0, 300, 400);
     AddMainView();
     busyindicator = new SfBusyIndicator();
     busyindicator.ViewBoxWidth  = 75;
     busyindicator.ViewBoxHeight = 75;
     busyindicator.Foreground    = UIColor.FromRGB(0x77, 0x97, 0x72); /*#779772*/
     busyindicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeSlicedCircle;
     IsConnectedToNetwork();
 }
Пример #14
0
        public KalmanRelationshipChartPage()
        {
            InitializeComponent();

            SfBusyIndicator busyIndicator = new SfBusyIndicator();

            BackgroundColor = MyColors.MidnightBlue;

            Chart.Opacity = .25;

            relativeLayout.Children.Add(busyIndicator, Constraint.Constant(App.ScreenWidth / 2), Constraint.Constant(App.ScreenHeight / 3), Constraint.Constant(10), Constraint.Constant(10));

            //Busy Indicator
            busyIndicator.ViewBoxWidth      = 150;
            busyIndicator.ViewBoxHeight     = 150;
            busyIndicator.HeightRequest     = 50;
            busyIndicator.WidthRequest      = 50;
            busyIndicator.BackgroundColor   = MyColors.MidnightBlue;
            busyIndicator.AnimationType     = AnimationTypes.DoubleCircle;
            busyIndicator.TextColor         = MyColors.Turqoise;
            busyIndicator.IsVisible         = true;
            busyIndicator.IsBusy            = true;
            busyIndicator.HorizontalOptions = LayoutOptions.Center;
            busyIndicator.VerticalOptions   = LayoutOptions.Center;

            //get data
            Task.Run(() => {
                AnalyzingStockMarkets.GetStockMarketIndicators indicators = new AnalyzingStockMarkets.GetStockMarketIndicators();

                var indexPoints = indicators.IndexPoints;
                var lines       = indicators.Lines;
                var vm          = new KalmanRelationshipViewModel(indexPoints, lines);

                Device.BeginInvokeOnMainThread(
                    () => {
                    BindingContext = vm;

                    Market0.Label = vm.Points [0] [0].Name;
                    Market1.Label = vm.Points [1] [0].Name;
                    Market2.Label = vm.Points [2] [0].Name;
                    Market3.Label = vm.Points [3] [0].Name;
                    Market4.Label = vm.Points [4] [0].Name;
                    Market5.Label = vm.Points [5] [0].Name;

                    //turn off busy indicator
                    busyIndicator.IsVisible = false;
                    busyIndicator.IsBusy    = false;

                    Chart.FadeTo(1, 500, Easing.CubicIn);
                });
            });
        }
Пример #15
0
        public CompareMsftGbmChartPage()
        {
            InitializeComponent();

            Chart.Opacity = .25;

            SfBusyIndicator busyIndicator = new SfBusyIndicator();

            Task.Run(() => {
                SimulatingAndAnalyzingAssetPrices.GetMsftCsvData msftData = new SimulatingAndAnalyzingAssetPrices.GetMsftCsvData();

                Device.BeginInvokeOnMainThread(
                    () => {
                    //set data
                    data  = msftData.MsftActual;
                    data1 = msftData.MsftSimulated;

                    //turn of busy indicator
                    busyIndicator.IsVisible = false;
                    busyIndicator.IsBusy    = false;

                    //set binding context
                    //TODO: Nullcheck
                    Chart.FadeTo(1, 500, Easing.CubicIn);
                    BindingContext = new DateTimeDoubleViewModel(data, data1);
                });
            });

            Chart.Opacity = .25;

            //Busy Indicator
            busyIndicator.ViewBoxWidth      = 150;
            busyIndicator.ViewBoxHeight     = 150;
            busyIndicator.HeightRequest     = 50;
            busyIndicator.WidthRequest      = 50;
            busyIndicator.BackgroundColor   = MyColors.MidnightBlue;
            busyIndicator.AnimationType     = AnimationTypes.DoubleCircle;
            busyIndicator.TextColor         = MyColors.Turqoise;
            busyIndicator.IsVisible         = true;
            busyIndicator.IsBusy            = true;
            busyIndicator.HorizontalOptions = LayoutOptions.Center;
            busyIndicator.VerticalOptions   = LayoutOptions.Center;



            BackgroundColor = MyColors.MidnightBlue;
            series1.Color   = MyColors.Turqoise;
            series2.Color   = MyColors.Concrete;

            relativeLayout.Children.Add(busyIndicator, Constraint.Constant(App.ScreenWidth / 2), Constraint.Constant(App.ScreenHeight / 3), Constraint.Constant(10), Constraint.Constant(10));
        }
		public AnalyzingMarketInteractionsChartPage ()
		{
			InitializeComponent ();

			SfBusyIndicator busyIndicator = new SfBusyIndicator ();

			BackgroundColor = MyColors.MidnightBlue;

			Chart.Opacity = .25;

			relativeLayout.Children.Add (busyIndicator, Constraint.Constant (App.ScreenWidth / 2), Constraint.Constant (App.ScreenHeight / 3), Constraint.Constant (10), Constraint.Constant (10));

			//Busy Indicator
			busyIndicator.ViewBoxWidth = 150;
			busyIndicator.ViewBoxHeight = 150;
			busyIndicator.HeightRequest = 50;
			busyIndicator.WidthRequest = 50;
			busyIndicator.BackgroundColor = MyColors.MidnightBlue;
			busyIndicator.AnimationType = AnimationTypes.DoubleCircle;
			busyIndicator.TextColor = MyColors.Turqoise;
			busyIndicator.IsVisible = true;
			busyIndicator.IsBusy = true;
			busyIndicator.HorizontalOptions = LayoutOptions.Center;
			busyIndicator.VerticalOptions = LayoutOptions.Center;

			//get data
			Task.Run (() => {

				AnalyzingStockMarkets.GetStockMarketIndicators indicators = new AnalyzingStockMarkets.GetStockMarketIndicators ();

				var logliks = indicators.LogLikelihood;

				Device.BeginInvokeOnMainThread (
					() => {

						BindingContext = new AnalyzingMarketInteractionsViewModel (logliks);

						//turn off busy indicator
						busyIndicator.IsVisible = false;
						busyIndicator.IsBusy = false;

						Chart.FadeTo (1, 500, Easing.CubicIn);
					});
			});






		}
Пример #17
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            handler = new Handler();
            LinearLayout layout = new LinearLayout(context);

            layout.Orientation = Orientation.Vertical;
            TextView textView = new TextView(context);

            textView.TextSize = 16;
            textView.SetPadding(10, 20, 0, 0);
            textView.SetHeight(90);

            textView.Text = "Top Population Countries With Bubbles";
            layout.AddView(textView);
            textView.Gravity = Android.Views.GravityFlags.Top;
            maps             = new SfMaps(context);
            ShapeFileLayer layer = new ShapeFileLayer();

            layer.ShowItems                    = true;
            layer.Uri                          = "world1.shp";
            layer.DataSource                   = GetDataSource();
            layer.ShapeIdPath                  = "Country";
            layer.ShapeIdTableField            = "NAME";
            layer.ShapeSettings                = new ShapeSetting();
            layer.ShapeSettings.ShapeValuePath = "ShortName";
            layer.ShapeSettings.ShapeFill      = Color.ParseColor("#A9D9F7");
            BubbleMarkerSetting marker = new BubbleMarkerSetting()
            {
                FillColor = Color.ParseColor("#ffa500"), MinSize = 15, MaxSize = 25, ValuePath = "Population"
            };

            layer.BubbleMarkerSetting = marker;
            maps.Layers.Add(layer);
            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");
            layout.AddView(sfBusyIndicator);
            Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
            {
                layout.RemoveView(sfBusyIndicator);
                layout.AddView(maps);
            });
            handler.PostDelayed(run, 100);

            return(layout);
        }
Пример #18
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            handler = new Handler();
            LinearLayout layout = new LinearLayout(context);

            layout.Orientation = Orientation.Vertical;
            TextView textView = new TextView(context);

            textView.TextSize = 16;
            textView.SetPadding(10, 20, 0, 0);
            textView.SetHeight(90);

            textView.Text = "Rivers in Australia";
            layout.AddView(textView);
            textView.Gravity = Android.Views.GravityFlags.Top;
            maps             = new SfMaps(context);

            ShapeFileLayer layer = new ShapeFileLayer();

            layer.Uri = "australia.shp";
            layer.ShapeSettings.ShapeFill           = Color.ParseColor("#ACF9F7");
            layer.ShapeSettings.ShapeStrokeThickess = 1;
            maps.Layers.Add(layer);

            SubShapeFileLayer subLayer = new SubShapeFileLayer();

            subLayer.Uri = "river.shp";
            subLayer.ShapeSettings.ShapeFill           = Color.ParseColor("#00A8CC");
            subLayer.ShapeSettings.ShapeStrokeThickess = 2;
            layer.SubShapeFileLayers.Add(subLayer);
            maps.Layers.Add(layer);

            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");
            layout.AddView(sfBusyIndicator);
            Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
            {
                layout.RemoveView(sfBusyIndicator);
                layout.AddView(maps);
            });

            handler.PostDelayed(run, 100);

            return(layout);
        }
Пример #19
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            LinearLayout layout = new LinearLayout(context);

            density                 = context.Resources.DisplayMetrics.Density;
            sampleContext           = context;
            layout.LayoutParameters = new Android.Views.ViewGroup.LayoutParams(Android.Views.ViewGroup.LayoutParams.MatchParent, Android.Views.ViewGroup.LayoutParams.MatchParent);
            layout.Orientation      = Orientation.Vertical;
            layout.LayoutChange    += Layout_LayoutChange1;
            handler                 = new Handler();
            AddGridView();
            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = Com.Syncfusion.Sfbusyindicator.Enums.AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");
            layout.AddView(sfBusyIndicator);
            TextView textView = new TextView(context);

            textView.TextSize = 16;
            textView.SetPadding(10, 20, 10, 0);

            handler                   = new Handler();
            textView.Text             = "Since this application requires network connection, Please check your network connection.";
            textView.LayoutParameters = new Android.Views.ViewGroup.LayoutParams(Android.Views.ViewGroup.LayoutParams.WrapContent, Android.Views.ViewGroup.LayoutParams.WrapContent);

            if (IsOnline())
            {
                Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
                {
                    layout.RemoveView(sfBusyIndicator);
                    layout.AddView(mainGrid);
                });
                handler.PostDelayed(run, 100);
            }
            else
            {
                Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
                {
                    layout.RemoveView(sfBusyIndicator);
                    layout.AddView(textView);
                });
                handler.PostDelayed(run, 100);
            }


            return(layout);
        }
Пример #20
0
        public static SfBusyIndicator BusyIndicator()
        {
            SfBusyIndicator busyIndicator = new SfBusyIndicator()
            {
                AnimationType   = AnimationTypes.Ball,
                ViewBoxWidth    = 100,
                ViewBoxHeight   = 100,
                Title           = "Loading...",
                BackgroundColor = (Color)Application.Current.Resources["backgroundcolor"],
                TextColor       = (Color)Application.Current.Resources["highlightscolor"]
            };

            return(busyIndicator);
        }
Пример #21
0
        public LoadingPage()
        {
            SfBusyIndicator indicator = new SfBusyIndicator
            {
                Title         = "Loading...",
                TextColor     = Color.Black,
                TextSize      = 20,
                ViewBoxWidth  = 200,
                ViewBoxHeight = 200,
                AnimationType = AnimationTypes.DoubleCircle,
            };

            Content = indicator;
        }
Пример #22
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            handler = new Handler();
            LinearLayout layout = new LinearLayout(context);

            layout.Orientation = Orientation.Vertical;

            maps                                    = new SfMaps(context);
            layer                                   = new ShapeFileLayer();
            layer.Uri                               = "usa_state.shp";
            layer.ShowItems                         = true;
            layer.EnableSelection                   = false;
            layer.ShapeIdTableField                 = "STATE_NAME";
            layer.ShapeIdPath                       = "Name";
            layer.ShapeSettings.ShapeFill           = Color.ParseColor("#A9D9F7");
            layer.ShapeSettings.ShapeValuePath      = "Name";
            layer.ShapeSettings.ShapeColorValuePath = "Type";

            layer.DataSource = GetDataSource();

            SetColorMapping(layer.ShapeSettings);

            layer.DataLabelSettings.IntersectionAction = IntersectAction.None;
            layer.DataLabelSettings.SmartLabelMode     = IntersectAction.Trim;

            layer.TooltipSettings.ShowTooltip = true;
            layer.TooltipSettings.ValuePath   = "Name";

            maps.Layers.Add(layer);

            SfBusyIndicator sfBusyIndicator = new SfBusyIndicator(context);

            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.AnimationType = AnimationTypes.SlicedCircle;
            sfBusyIndicator.ViewBoxWidth  = 50;
            sfBusyIndicator.ViewBoxHeight = 50;
            sfBusyIndicator.TextColor     = Color.ParseColor("#779772");

            layout.AddView(sfBusyIndicator);
            Java.Lang.Runnable run = new Java.Lang.Runnable(() =>
            {
                layout.RemoveView(sfBusyIndicator);
                layout.AddView(maps);
            });

            handler.PostDelayed(run, 100);

            return(layout);
        }
Пример #23
0
 public BusyIndicatorPopUpPage()
 {
     popupLayout  = new SfPopupLayout();
     templateView = new DataTemplate(() =>
     {
         SfBusyIndicator busyIndicator = new SfBusyIndicator();
         busyIndicator.AnimationType   = AnimationTypes.Ball;
         busyIndicator.ViewBoxWidth    = 150;
         busyIndicator.ViewBoxHeight   = 150;
         busyIndicator.TextColor       = Color.SkyBlue;
         return(busyIndicator);
     });
     popupLayout.PopupView.ContentTemplate = templateView;
     popupLayout.Show();
 }
Пример #24
0
        public BusyView(ViewModelBase bindingContext)
        {
            BindingContext = bindingContext;

            BackgroundColor = Color.Transparent;
            var busyIndicator = new SfBusyIndicator
            {
                AnimationType = AnimationTypes.Cupertino,
                ViewBoxHeight = 150,
                ViewBoxWidth  = 150,
                Title         = "Loading..."
            };

            Content = busyIndicator;
        }
Пример #25
0
        private void ExecuteClickAction(object obj)
        {
            var loadingBtn = obj as Button;

            loadingBtn.Visibility = Visibility.Collapsed;

            BackgroundWorker backgroundWorker = new BackgroundWorker();

            backgroundWorker.DoWork             += BackgroundWorker_DoWork;
            backgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted;
            backgroundWorker.RunWorkerAsync();
            treeView             = Application.Current.MainWindow.FindName("treeView") as SfTreeView;
            busyIndicator        = Application.Current.MainWindow.FindName("loadingIndicator") as SfBusyIndicator;
            busyIndicator.IsBusy = true;
        }
Пример #26
0
        public ColorMapping()
        {
            SFMap maps = new SFMap();

            view          = new UIView();
            busyindicator = new SfBusyIndicator();
            busyindicator.ViewBoxWidth  = 75;
            busyindicator.ViewBoxHeight = 75;
            busyindicator.Foreground    = UIColor.FromRGB(0x77, 0x97, 0x72);            /*#779772*/
            busyindicator.AnimationType = SFBusyIndicatorAnimationType.SFBusyIndicatorAnimationTypeSlicedCircle;
            view.AddSubview(busyindicator);

            NSTimer.CreateScheduledTimer(TimeSpan.FromSeconds(0.3), delegate {
                if (isDisposed)
                {
                    return;
                }
                maps.Frame = new CGRect(0, 0, Frame.Size.Width, Frame.Size.Height);

                view.AddSubview(maps);
            });
            view.Frame          = new CGRect(0, 0, 300, 400);
            label               = new UILabel();
            label.TextAlignment = UITextAlignment.Center;
            label.Text          = "Primary Agricultural Activity of USA";
            label.Font          = UIFont.SystemFontOfSize(18);
            label.Frame         = new  CGRect(0, 0, 300, 40);
            label.TextColor     = UIColor.Black;
            view.AddSubview(label);

            layer            = new SFShapeFileLayer();
            layer.Uri        = (NSString)NSBundle.MainBundle.PathForResource("usa_state", "shp");
            layer.DataSource = GetDataSource();
            SetColorMapping(layer.ShapeSettings);
            layer.ShapeSettings.ColorValuePath = (NSString)"Type";
            layer.ShapeSettings.StrokeColor    = UIColor.White;
            layer.LegendSettings            = new SFMapLegendSettings();
            layer.LegendSettings.Position   = new CGPoint(50, 10);
            layer.LegendSettings.ShowLegend = true;
            maps.Layers.Add(layer);
            maps.Delegate = new MapsColorMappingDelegate(this);
            AddSubview(view);

            ColorMappingTooltipSetting tooltipSetting = new ColorMappingTooltipSetting();

            tooltipSetting.ShowTooltip = true;
            layer.TooltipSettings      = tooltipSetting;
        }
Пример #27
0
 /// <summary>
 /// Initializes a new instance for the <see cref="LoginPageViewModel" /> class.
 /// </summary>
 public LoginPageViewModel(INavigation _navigation)
 {
     this.LoginCommand            = new Command(this.LoginClicked);
     this.SignUpCommand           = new Command(this.SignUpClicked);
     this.SkipCommand             = new Command(this.SkipClicked);
     this.ForgotPasswordCommand   = new Command(this.ForgotPasswordClicked);
     this.SocialMediaLoginCommand = new Command(this.SocialLoggedIn);
     busyIndicator = new SfBusyIndicator()
     {
         AnimationType = AnimationTypes.Ball,
         ViewBoxHeight = 100,
         ViewBoxWidth  = 100,
         Title         = "Loading ...",
         TextColor     = Color.White
     };
 }
Пример #28
0
        public FittedVersusObservedChartPage()
        {
            InitializeComponent();

            SfBusyIndicator busyIndicator = new SfBusyIndicator();

            BackgroundColor = MyColors.MidnightBlue;

            Chart.Opacity = .25;

            relativeLayout.Children.Add(busyIndicator, Constraint.Constant(App.ScreenWidth / 2), Constraint.Constant(App.ScreenHeight / 3), Constraint.Constant(10), Constraint.Constant(10));

            //Busy Indicator
            busyIndicator.ViewBoxWidth      = 150;
            busyIndicator.ViewBoxHeight     = 150;
            busyIndicator.HeightRequest     = 50;
            busyIndicator.WidthRequest      = 50;
            busyIndicator.BackgroundColor   = MyColors.MidnightBlue;
            busyIndicator.AnimationType     = AnimationTypes.DoubleCircle;
            busyIndicator.TextColor         = MyColors.Turqoise;
            busyIndicator.IsVisible         = true;
            busyIndicator.IsBusy            = true;
            busyIndicator.HorizontalOptions = LayoutOptions.Center;
            busyIndicator.VerticalOptions   = LayoutOptions.Center;

            //get data
            Task.Run(() => {
                AnalyzingStockMarkets.GetStockMarketIndicators indicators = new AnalyzingStockMarkets.GetStockMarketIndicators();

                var original = indicators.OriginalObservedData;
                var fitted   = indicators.FittedData;

                Device.BeginInvokeOnMainThread(
                    () => {
                    BindingContext = new AnalyzingMarketInteractionsViewModel(original, fitted);

                    //turn off busy indicator
                    busyIndicator.IsVisible = false;
                    busyIndicator.IsBusy    = false;

                    series1.Color = MyColors.Turqoise;
                    series2.Color = MyColors.Concrete;

                    Chart.FadeTo(1, 500, Easing.CubicIn);
                });
            });
        }
Пример #29
0
        public override View GetSampleContent(Context con1)
        {
            con = con1;

            //sfBusyIndicator
            sfBusyIndicator               = new SfBusyIndicator(con);
            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.TextColor     = Color.Rgb(62, 101, 254);
            sfBusyIndicator.AnimationType = AnimationTypes.Ball;
            sfBusyIndicator.ViewBoxWidth  = 150;
            sfBusyIndicator.ViewBoxHeight = 150;
            sfBusyIndicator.TextSize      = 60;
            sfBusyIndicator.Title         = "";
            sfBusyIndicator.SetBackgroundColor(Color.Rgb(255, 255, 255));

            FrameLayout mainView = new FrameLayout(con);

            mainView.AddView(sfBusyIndicator);
            return(mainView);
        }
Пример #30
0
        public ParkItemViewModel()
        {
            busyIndicator     = new SfBusyIndicator();
            ImageSource       = "icon";
            dialogService     = new DialogService();
            navigationService = new NavigationService();
            geolocatorService = new GeolocatorService();
            apiService        = new ApiService();
            dataService       = new DataService();
            settingsService   = new SettingsService();
            //netService = new NetService();

            TypeParkings = new List <TypeParking>();
            LoadTypeUsers();


            LoadColor();

            IsBusy    = false;
            IsEnabled = true;
        }
Пример #31
0
        public AnimationPage(string userName, string userPassword)
        {
            InitializeComponent();

            SfBusyIndicator busyIndicator = new SfBusyIndicator()
            {
                AnimationType   = AnimationTypes.Ball,
                ViewBoxWidth    = 100,
                ViewBoxHeight   = 100,
                Title           = "Loading...",
                BackgroundColor = (Color)Application.Current.Resources["backgroundcolor"],
                TextColor       = (Color)Application.Current.Resources["buttonscolor"]
            };

            username     = userName;
            userpassword = userPassword;


            this.Content = busyIndicator;
            loginProcess();
        }
        public View GetSampleContent(Context con)
        {
            SamplePageContent(con);

            /******************
            **BusyIndicator**
            ******************/
            sfBusyIndicator               = new SfBusyIndicator(con);
            sfBusyIndicator.IsBusy        = true;
            sfBusyIndicator.TextColor     = Color.Rgb(62, 101, 254);
            sfBusyIndicator.AnimationType = AnimationTypes.DoubleCircle;
            sfBusyIndicator.ViewBoxWidth  = 133;
            sfBusyIndicator.ViewBoxHeight = 133;
            sfBusyIndicator.TextSize      = 60;
            sfBusyIndicator.Title         = "";
            sfBusyIndicator.SetBackgroundColor(Color.Rgb(255, 255, 255));

            //main view
            LinearLayout mainView = GetView(con);

            return(mainView);
        }
Пример #33
0
        private async Task BeBusy(bool args)
        {
            if (args)
            {
                var layout = new StackLayout
                {
                    IsVisible       = true,
                    BackgroundColor = Color.FromHex("#ffffff"),
                    Opacity         = .8
                };
                AbsoluteLayout.SetLayoutBounds(layout, new Rectangle(.5, .5, 1, 1));
                AbsoluteLayout.SetLayoutFlags(layout, AbsoluteLayoutFlags.All);


                var bysyIndic = new SfBusyIndicator
                {
                    AnimationType = AnimationTypes.DoubleCircle,
                    ViewBoxWidth  = 70,
                    Title         = "please wait..",
                    IsBusy        = true,
                    ViewBoxHeight = 70,
                    TextColor     = Color.FromHex("#47525e")
                };

                AbsoluteLayout.SetLayoutBounds(bysyIndic, new Rectangle(.5, .5, 1, 1));
                AbsoluteLayout.SetLayoutFlags(bysyIndic, AbsoluteLayoutFlags.All);


                main.Children.Add(layout);
                main.Children.Add(bysyIndic);
            }
            else
            {
                main.Children.Remove(main.Children.Last());
                main.Children.Remove(main.Children.Last());
            }
        }
Пример #34
0
        private Task PreBumpWork()
        {
            return(Task.Factory.StartNew(() =>
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    bumpPop.Dismiss();
                    DataTemplate loadView = new DataTemplate(() =>
                    {
                        SfBusyIndicator busy = new SfBusyIndicator();
                        busy.IsBusy = true;
                        return busy;
                    });
                    loadPop.PopupView.ContentTemplate = loadView;
                    loadPop.PopupView.ShowFooter = false;
                    loadPop.PopupView.ShowHeader = false;
                    loadPop.ClosePopupOnBackButtonPressed = false;
                    loadPop.Show();
                });

                if (String.IsNullOrEmpty((string)gradeSel.SelectedValue) || String.IsNullOrWhiteSpace((string)gradeSel.SelectedValue))
                {
                    Device.BeginInvokeOnMainThread(() => {
                        gradeSel.Watermark = "Please select a grade";
                        loadPop.Dismiss();
                        bumpPop.Show();
                    });
                }
                else
                {
                    string grade = (string)gradeSel.SelectedValue;

                    Task.Run(async() => await BumpGrade(grade));
                }
            }));
        }
Пример #35
0
		public override View GetSampleContent (Context con)
		{
			spinner = new Spinner(con);
			spinner.SetMinimumHeight(60);
			spinner.DropDownWidth = 500;
			spinner.SetBackgroundColor(Color.Gray);
		
			List<String> list = new List<String>();
			list.Add("Ball");
			list.Add("Battery");
			list.Add("DoubleCircle");
			list.Add("ECG");
			list.Add("Globe");
			list.Add("HorizontalPulsingBox");
			list.Add("MovieTimer");
			list.Add("Print");
			list.Add("Rectangle");
			list.Add("RollingBall");
			list.Add("SingleCircle");
			list.Add("SlicedCircle");
			list.Add("ZoomingTarget");

			ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>
				(con, Android.Resource.Layout.SimpleSpinnerItem, list);
			dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
			spinner.Adapter = dataAdapter;
			spinner.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner_ItemSelected);

			TextView textView = new TextView(con);
			textView.TextSize = 20;
			textView.Text = "Animation Type";
			TextView textView1 = new TextView(con);
			textView1.TextSize = 10;
			textView.SetTextColor(Color.Black);

			TextView textView2 = new TextView(con);
			textView2.TextSize = 10;
			textView2.SetTextColor(Color.Black);

			LinearLayout linearLayout = new LinearLayout(con);
			linearLayout.SetPadding(20, 20, 20, 30);
			linearLayout.SetBackgroundColor(Color.Rgb(236,235,242));
			linearLayout.LayoutParameters = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WrapContent,
				LinearLayout.LayoutParams.WrapContent);
			linearLayout.Orientation = Orientation.Vertical;
			linearLayout.AddView(textView);
			linearLayout.AddView(textView2);
			linearLayout.AddView(spinner);
			linearLayout.AddView(textView1);

			sfBusyIndicator = new SfBusyIndicator(con);
			sfBusyIndicator.IsBusy = true;
			sfBusyIndicator.TextColor = Color.Rgb(62,101,254);
			sfBusyIndicator.AnimationType = AnimationTypes.DoubleCircle;
			sfBusyIndicator.ViewBoxWidth = 200;
			sfBusyIndicator.ViewBoxHeight = 200;
			sfBusyIndicator.TextSize = 60;
			sfBusyIndicator.Title = "";
			sfBusyIndicator.SetBackgroundColor(Color.Rgb(255,255,255));
			linearLayout.AddView(sfBusyIndicator);
			// Set our view from the "main" layout resource
			return linearLayout;
		}
		public BusyIndicator ()
		{
			//InitializeComponent ();
			Label label;
			sfbusyindicator = new SfBusyIndicator();
			sfbusyindicator.ViewBoxWidth = 150;
			sfbusyindicator.ViewBoxHeight = 150;
			sfbusyindicator.BackgroundColor = Color.White;
			sfbusyindicator.VerticalOptions = LayoutOptions.FillAndExpand;
			picker = new PickerExt ();
			picker.BackgroundColor = Color.White;
		    if (Device.OS == TargetPlatform.WinPhone)
		        picker.BackgroundColor = Color.Gray;
			picker.Items.Add ("Ball");
			picker.Items.Add ("Battery");
			picker.Items.Add ("DoubleCircle");
			picker.Items.Add ("ECG");
			picker.Items.Add ("Globe");
			picker.Items.Add ("HorizontalPulsingBox");
			picker.Items.Add ("Print");
			picker.Items.Add ("Rectangle");
			picker.Items.Add ("SingleCircle");
			picker.Items.Add ("SlicedCircle");
			picker.HeightRequest = 40;
			picker.SelectedIndex = 0;
			picker.SelectedIndexChanged += picker_SelectedIndexChanged;
			if (Device.OS == TargetPlatform.iOS)
			{

				picker.BackgroundColor = Color.White;
				label = new Label () {
					Text = "\nAnimation Type",
					HeightRequest = 20,
					TextColor = Color.Black
				};
				label.FontAttributes = FontAttributes.Bold;
				label.FontSize = 25;
			}
			else if(Device.OS == TargetPlatform.WinPhone)
			{
				label = new Label() { Text = "Animation Type", HeightRequest = 35, TextColor = Color.Black };
				picker.HeightRequest = 60;
				label.FontAttributes = FontAttributes.Bold;
				label.FontSize = 25;
				sfbusyindicator.Title = " ";
			}
            
                
			else
			{
				label = new Label() { Text = "Animation Type", HeightRequest = 35,  TextColor = Color.Black };
				label.FontAttributes = FontAttributes.Bold;
				label.FontSize = 25;
			}
            if (Device.OS == TargetPlatform.Windows && Device.Idiom != TargetIdiom.Tablet)
            {
               
                    picker.BackgroundColor = Color.Gray;
                
            }
			var mainStack = new StackLayout
			{
				Spacing = Device.OnPlatform(iOS: 10, Android: 10, WinPhone: 30),
				Padding = Device.OnPlatform(iOS: 10, Android : 10, WinPhone : 20),
				Children = {label,picker,sfbusyindicator }
			};
			this.ContentView = mainStack;
			this.BackgroundColor = Color.FromRgb(236,235,242);
		}