简体   繁体   中英

add ListView for every spinner Item..and pops down when clicked

I am beginner on android... I am tried this many times either it shows error or it shows all the listview(array items) from the begining of code running and at a time all together...Here's what need: I want to add List View inside Spinner Item... For every Spinner Item there will be a list view... Firstly before clicking spinner item it should not show any list view items... And it would show only one list view at a time on selection of spinner item...

[Java[][1] 1

I think you can get this functionality using expandable listview. Refer to this tutorial by androidhive for how to create an expandable listview

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM