Which of the following is NOT true about the MenuItem interface?
Which of the following is NOT true about the MenuItem interface?
The statement that MenuItem can display either an icon or text is not true, as MenuItem can actually display both an icon and text. The MenuItem interface provides methods such as setIcon() and setTitle() which allow setting an icon and text respectively. Therefore, it is incorrect to state that a MenuItem can only display one or the other.
B. MenuItem can decide the Intent issued when clicking menu components.