Which of the following is true about object arrayAdapter declared in the code below?
String[] items = {"Item 1","Item 2","Item 3"}; ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items) ; listView.setAdapter(arrayAdapter) ;
A) It creates a TextView for each String in array items.
B) It creates Buttons for each String in array items.
C) It creates four views for listView.
D) It replaces the layout of the activity with three consecutive TextView items.
Correct Answer:
Verified
Q17: What method you should override to use
Q18: What Activity method you use to retrieve
Q19: A developer can create a custom view
Q20: Which of the following is not a
Q21: What two methods you have to override
Q23: Which of the following WebView methods allows
Q24: Which of the following is a correct
Q25: Which of the following Activity methods is
Q26: Which of the following add a click
Q27: Which of the following is NOT a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents