Android Application Development (AND-401) — Question 51
Which of the following is NOT true about the MenuItem interface?
Answer options
- A. The MenuItem instance will be returned by the Menu class add(...) method.
- B. MenuItem can decide the Intent issued when clicking menu components.
- C. MenuItem can display either an icon or text.
- D. MenuItem can set a checkbox.
Correct answer: C
Explanation
The correct answer is C because the MenuItem interface can either display an icon or text, but not both simultaneously. Options A, B, and D are true, as they accurately describe the functionalities of the MenuItem interface.