Challenge 2: Add a Listener to the textView


#1

I tried to make mines similar to the rest of the buttons but with the algorithm of the next button. I had no errors but when I touch my screen nothing happens but the rest of the buttons work perfectly. This is what I have----->

//12-7-17 12:28am AR
mQuestionTextView = (TextView) findViewById(R.id.question_text_view);
//Challenge: add a listener to the textView
mQuestionTextView.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
mCurrentIndex = (mCurrentIndex + 1) % mQuestionBank.length;
updateQuestion();
}
});


#2

Your code looked fine to me. Make sure you touch the textView, not only screen.