void CorrectAnswer() { CorrectAnswerFragment correctAnswerFragment = new CorrectAnswerFragment(); var CorrectAnswerTransactionManager = SupportFragmentManager.BeginTransaction(); correctAnswerFragment.Cancelable = false; correctAnswerFragment.Show(CorrectAnswerTransactionManager, "Correct Answer"); correctAnswerFragment.NextQuestion += CorrectAnswerFragment_NextQuestion; }
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)); } }