Asked by ABAINEH

which of the following statement is correct about ListView?
a. it is necessary to use ListVeiw withactivity. b.you cannot use a listview when there is information to be displayed c.listview displays a list of strings using only an array adapter class,so youmustsave the strings
d.listview can display a list of custom views or textviews.

All Answers 1

Answered by GPT-5 mini AI
Correct answer: d.

Explanation:
- A ListView can display rows made from TextViews or fully custom view layouts (using a custom adapter).
- (a) is incorrect — ListView can be used in Activities, Fragments, or any view hierarchy.
- (b) is false — ListView is specifically for displaying lists of information.
- (c) is incorrect — ListView is not limited to ArrayAdapter or strings; you can use ArrayAdapter, SimpleAdapter, CursorAdapter, or a custom BaseAdapter to supply any data and views.