How to fill a ListView with a string-array?

前端 未结 2 1595
你的背包
你的背包 2021-01-04 17:27

I want to show these itens at my ListView


    Google
    Bing         


        
2条回答
  •  悲&欢浪女
    2021-01-04 17:46

    You can do this with an ArrayAdapter and have it use either an Array or a List to give it data

    lv.setAdatper(new ArrayAdapter(context, R.layout.some_layout_to_use, R.id.some_textview_in_layout, listData);
    

提交回复
热议问题