Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please tell how may I add question for different question like question0 question1 and so and also answerbutton 3-G. Implement displayQuestion0 You should have access
please tell how may I add question for different question like question0 question1 and so and also answerbutton
3-G. Implement displayQuestion0 You should have access to every View necessary to implement this method: your main ImageView, your question TextView, and your four answer Button Views (all declared as member variables in 3-A. You must modify these View objects using either the setText() or setImageresource() methods. Hint The Question object contains every variable you need to implement this method, namely; imageId, questionText, answer...answer3. To access them, use dot-syntax, e.g. question. answere, and pass those values as parameters... answereButton. setText(question.answero); . void displayquestion() \{ questionImageView. setImageResource(R.drawable.img_quote_ ); Question question = "Pretty good advice, and perhaps a scientist did say it.. Who actually did?". questionTextView. setText (questions.add(question ))Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started