コード例 #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            if (container == null)
            {
                // Currently in a layout without a container, so no reason to create our view.
                return(null);
            }

            SplashView = new UISplash( );

            RelativeLayout view = inflater.Inflate(Resource.Layout.OOBEView, container, false) as RelativeLayout;

            view.SetBackgroundColor(Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BG_Layer_Color));

            view.SetOnTouchListener(this);

            Point displaySize = new Point( );

            Activity.WindowManager.DefaultDisplay.GetSize(displaySize);

            SplashView.Create(view, "", "splash_logo_android.png", false, new System.Drawing.RectangleF(0, 0, displaySize.X, displaySize.Y),
                              delegate
            {
                SpringboardParent.SplashComplete( );
            });

            return(view);
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.Layer.AnchorPoint = CGPoint.Empty;
            View.BackgroundColor   = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BackgroundColor);

            // this is totally a hack, but in order to seamlessly transition from the splash screen
            // to our logo, we need to use a PER-DEVICE image. Sigh.
            string backgroundName = GetSplashBackground(UIKit.UIScreen.MainScreen.ApplicationFrame.Size, UIKit.UIScreen.MainScreen.Scale);
            string logoName       = OOBEViewController.GetSplashLogo(UIKit.UIScreen.MainScreen.ApplicationFrame.Size, UIKit.UIScreen.MainScreen.Scale);

            SplashView = new UISplash();
            SplashView.Create(View, backgroundName, logoName, true, View.Frame.ToRectF( ), delegate
            {
                Springboard.SplashComplete( );
            });
        }