开发者

Android - How would it be possible to make a ListView to mimic the android notifications ListView programmatically?

开发者 https://www.devze.com 2023-03-11 10:49 出处:网络
I am looking to build a ListView开发者_Go百科 that looks identical to Android notifications, programmatically. I am not sure how to customize every row of the list. Should it be a list of WebViews?

I am looking to build a ListView开发者_Go百科 that looks identical to Android notifications, programmatically. I am not sure how to customize every row of the list. Should it be a list of WebViews?

ArrayAdapter<String> modeAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, stringArray);
    modeList.setAdapter(modeAdapter);

In the above code, what do I need to replace the stringArray with?


you can see the examples for listveiw

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号