Created by Jason Manns
about 8 years ago
|
||
Copied by Jason Manns
about 8 years ago
|
||
Question | Answer |
You have a ListView named firendsListView & an ArrayList of friends named friends. Write the code to display friends in the friendsListView. | ArrayAdapter<String> arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, friends); listView.setAdapter(arrayAdapter); |
Want to create your own Flashcards for free with GoConqr? Learn more.