void StartCategoryActivityWithTransition(Activity activity, View toolbar, Category category)
        {
            var pairs = TransitionHelper.CreateSafeTransitionParticipants(activity, false, new Pair(toolbar, activity.GetString(Resource.String.transition_toolbar)));
            var sceneTransitionAnimation = ActivityOptions.MakeSceneTransitionAnimation(activity, pairs);

            // Start the activity with the participants, animating from one to the other.
            var transitionBundle = sceneTransitionAnimation.ToBundle();

            activity.StartActivity(IntentHelper.GetStartIntent(activity, category), transitionBundle);
        }
Пример #2
0
        void PerformSignInWithTransition(View v)
        {
            var activity = Activity;

            var pairs = TransitionHelper.CreateSafeTransitionParticipants(activity, true,
                                                                          new Pair(v, activity.GetString(Resource.String.transition_avatar)));
            var activityOptions = ActivityOptions.MakeSceneTransitionAnimation(activity, pairs);

            CategorySelectionActivity.Start(activity, player, activityOptions);
        }