I just started Android development so this may be a quite easy question.
What I write at the moment is a quiz app. So I wrote the class Frage and now I want to display the question and three answers in an activity. Each question has an id so when I press a button I want to show the next question.
I think I need one TextView and three buttons for the answers.
But how can I display the values of my object in view??
You can use the method
setText(CharSequence)to display your item. SinceButtoninherits fromTextViewthe methods work the same way in both cases.Usage would look something like this: