Multiple choice

Which of the following statements is/are true for ListView? A. android.R.layout.simple_list_item_1 is used to display a single line of text in a row of ListView. B. Android.R.layout.two_line_list_item displays two lines of text per row of a list.

  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Here are two that we could use with a ListView:

android.R.layout.simple_list_item_1 is used to display a single line of text in a row of ListView. Android.R.layout.two_line_list_item displays two lines of text per row of a list.