Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android studio listview arrayadapter

//Creating the Adapter:->

ArrayAdapter<String> itemsAdapter = 
    new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);

//Setting the Adapter:->
	listView.setAdapter(itemsAdapter);
Source by guides.codepath.com #
 
PREVIOUS NEXT
Tagged: #android #studio #listview #arrayadapter
ADD COMMENT
Topic
Name
2+1 =