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 imageName = GetSplashLogo( UIKit.UIScreen.MainScreen.ApplicationFrame.Size, UIKit.UIScreen.MainScreen.Scale );

            // before anything else, get the campuses. if we cant, use the default ones.
            /*RockApi.Get_Campuses( 
                delegate(System.Net.HttpStatusCode statusCode, string statusDescription, System.Collections.Generic.List<Rock.Client.Campus> model )
                {
                    if ( Rock.Mobile.Network.Util.StatusInSuccessRange( statusCode ) )
                    {
                        
                        break;
                    }
                } );*/

            OOBEView = new UIOOBE();
            OOBEView.Create( View, "oobe_splash_bg.png", imageName, true, View.Frame.ToRectF( ), delegate(int index, bool isCampusSelection ) 
                {
                    Springboard.OOBEOnClick( index, isCampusSelection );
                } );
        }
Example #2
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;
            }

            OOBEView = new UIOOBE( );

            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 );

            string imageName = "oobe_splash_logo.png";

            Point displaySize = new Point( );
            Activity.WindowManager.DefaultDisplay.GetSize( displaySize );

            OOBEView.Create( view, "oobe_splash_bg.png", imageName, new System.Drawing.RectangleF( 0, 0, NavbarFragment.GetContainerDisplayWidth( ), this.Resources.DisplayMetrics.HeightPixels ),

                delegate(int index)
                {
                    SpringboardParent.OOBEUserClick( index );
                } );

            return view;
        }
Example #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            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 imageName = GetSplashLogo( UIKit.UIScreen.MainScreen.ApplicationFrame.Size, UIKit.UIScreen.MainScreen.Scale );

            OOBEView = new UIOOBE();
            OOBEView.Create( View, "oobe_splash_bg.png", imageName, View.Frame.ToRectF( ), delegate(int index)
                {
                    Springboard.OOBEOnClick( index );
                } );
        }