Example #1
0
        protected override void OnStart()
        {
            base.OnStart();
            SetContentView(Resource.Layout.SplashActivity);

            //ImageView ut = new ImageView(this);
            //var dr = SvgFactory.GetDrawable(this, "upward_star_white", CancellationToken.None);
            //ut.SetImageDrawable(dr);
            var ut = ViewUtil.GetSVGImageView(this, "upward_star_white", 100, Resource.Color.white);

            //ut.Gravity = GravityFlags.Center;
            FindViewById <FrameLayout>(Resource.Id.splash).AddView(ut);
            Iconize
            .With(new MaterialModule())
            .With(new FontAwesomeModule());
        }
        public void SetUpNavigationDrawer()
        {
            GetDrawerInfo();
            //If not logged in, show nonauthenticated section and hide authenticated
            //Otherwise, set up profile picture, profile full name, handle and favorites
            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.createAccountButton_Icon)
            .AddView(ViewUtil.GetSVGImageView(this, "arrow_right_white_small", 24, Android.Resource.Color.White));
            NavView.FindViewById(Resource.Id.createAccountButton).Click      += CreateAccount_Click;
            NavView.FindViewById(Resource.Id.alreadyHaveAccountButton).Click += SignIn_Click;
            NavView.FindViewById(Resource.Id.about_upward).Click             += GoToAppInfo_Click;

            float iconSize = 60;

            var findALeague = ViewUtil.GetSVGImageView(this, "location_grey", iconSize);
            var volunteer   = ViewUtil.GetSVGImageView(this, "volunteer_grey", iconSize);
            var donate      = ViewUtil.GetSVGImageView(this, "donate_grey", iconSize);
            var aboutUpward = ViewUtil.GetSVGImageView(this, "about_grey", iconSize);
            var contact     = ViewUtil.GetSVGImageView(this, "contact_grey", iconSize);
            var preferences = ViewUtil.GetSVGImageView(this, "settings_grey", iconSize);

            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.find_a_league_icon).AddView(findALeague);
            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.volunteer_icon).AddView(volunteer);
            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.donate_icon).AddView(donate);

            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.about_upward_icon).AddView(aboutUpward);
            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.contact_us_icon).AddView(contact);
            NavView.FindViewById <Android.Widget.RelativeLayout>(Resource.Id.preferences_icon).AddView(preferences);

            NavView.FindViewById(Resource.Id.drawerLogout).Click += Logout_Click;

            NavView.FindViewById(Resource.Id.find_a_league).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.volunteer).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.contact_us).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.donate).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.about_upward).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.drawerPrivacyPolicy).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.drawerFanreactTechnologies).SetOnClickListener(this);
            NavView.FindViewById(Resource.Id.drawerTermsAndConditions).SetOnClickListener(this);
        }