Which of the following is true about object arrayAdapter declared in - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

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.

This question is part of Android Application Development (AND-401)
Asked by Shadabwls, Last updated: Sep 12, 2020

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

shadabwls

shadabwls

shadabwls
Shadabwls

Answered Mar 02, 2019

It creates a TextView for each String in array items.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.