How to use ArrayAdapter

后端 未结 5 1842
夕颜
夕颜 2020-11-22 14:23
ArrayList myList = new ArrayList();

ListView listView = (ListView) findViewById(R.id.list);

ArrayAdapter adapter = new         


        
5条回答
  •  情话喂你
    2020-11-22 14:33

    Subclass the ArrayAdapter and override the method getView() to return your own view that contains the contents that you want to display.

提交回复
热议问题