public void InitIcon(CircleImage icon)
        {
            // build the loading page with native base
            icon.Parent = Xamarin.Forms.Application.Current.MainPage;

            icon.Layout(new Rectangle(Xamarin.Forms.Application.Current.MainPage.Width - icon.WidthRequest, Xamarin.Forms.Application.Current.MainPage.Height - icon.HeightRequest,
                                      icon.WidthRequest,
                                      icon.HeightRequest));

            var renderer = icon.GetOrCreateRenderer();

            _iconNativeView = renderer.View;

            _iconDialog = new Dialog(CrossCurrentActivity.Current.Activity);
            _iconDialog.RequestWindowFeature((int)WindowFeatures.NoTitle);
            _iconDialog.SetCancelable(true);
            _iconDialog.SetCanceledOnTouchOutside(true);
            _iconDialog.SetContentView(_iconNativeView);
            Window window = _iconDialog.Window;

            window.SetLayout(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent);
            window.SetGravity(GravityFlags.Bottom);
            window.ClearFlags(WindowManagerFlags.DimBehind);
            window.SetBackgroundDrawable(new ColorDrawable(Android.Graphics.Color.Transparent));

            _isIconInitialized = true;
        }
        public void InitIcon(CircleImage icon)
        {
            // build the loading page with native base
            icon.Parent = Xamarin.Forms.Application.Current.MainPage;

            icon.Layout(new Rectangle(Xamarin.Forms.Application.Current.MainPage.Width - icon.WidthRequest, Xamarin.Forms.Application.Current.MainPage.Height - icon.HeightRequest,
                                      icon.WidthRequest,
                                      icon.HeightRequest));

            var renderer = icon.GetOrCreateRenderer();

            _iconNativeView = renderer.NativeView;

            _isIconInitialized = true;
        }