开发者

Can i add components like spinner etc. in my listview with my listitems?

开发者 https://www.devze.com 2023-04-05 10:58 出处:网络
I am using a listview with n number of listitems. I have need to add a spinner with all my listitems.

I am using a listview with n number of listitems. I have need to add a spinner with all my listitems. Is there an开发者_如何学Goy option to add the spinner dynamically. Because i can't determine the number of listitems.


Yes you can, for this you need to create a custom list adapters. See this tutorial for more information

http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/

Customize row.xml to add Spinner there as per your layout.

0

精彩评论

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