Android Application Development (AND-401) — Question 39

Which of the following makes a ListView Clickable?

Answer options

Correct answer: C

Explanation

The correct answer is C, as setting 'setEnabled(true)' allows the ListView to respond to user interactions. Option A, 'setClickable(true)', is not sufficient on its own, while Option B, 'setVisibility(View.Visible)', only controls visibility, and Option D, 'setItemsEnabled(true)', does not directly apply to the ListView's interactivity.