Answer the question
In order to leave comments, you need to log in
RecyclerView problem?
@Override
public void onBindViewHolder(final QuizViewHolder quizViewHolder, int i) {
quizViewHolder.quizName.setText(quizs.get(i).getName());<b></b>
quizViewHolder.quizCost.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Log.d(TAG, quizViewHolder.quizCost.getText().toString());
}
});
}
Answer the question
In order to leave comments, you need to log in
How to pass what is in the log in onBindViewHolder to the TextView Which hangs in the layout above the entire RecyclerView design?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question