Example #1
0
        void CorrectAnswer()
        {
            CorrectAnswerFragment correctAnswerFragment = new CorrectAnswerFragment();
            var CorrectAnswerTransactionManager         = SupportFragmentManager.BeginTransaction();

            correctAnswerFragment.Cancelable = false;
            correctAnswerFragment.Show(CorrectAnswerTransactionManager, "Correct Answer");
            correctAnswerFragment.NextQuestion += CorrectAnswerFragment_NextQuestion;
        }
Example #2
0
        private void SummaryAnswersAdapterOnItemClick(object sender, SummaryAnswersRecyclerViewClickEventArgs e)
        {
            var userAnswer = userAnswers[e.Position];

            if (userAnswer.IsUserAnswerCorrect == false)
            {
                var correctAnswerFragment = new CorrectAnswerFragment(userAnswer.Question.CorrectAnswer)
                {
                    Cancelable = false
                };
                correctAnswerFragment.Show(SupportFragmentManager, nameof(CorrectAnswerFragment));
            }
        }