📜  android studio listview arrayadapter - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.063000             🧑  作者: Mango

代码示例1
//Creating the Adapter:->

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

//Setting the Adapter:->
    listView.setAdapter(itemsAdapter);