Android ListView Item Visibility

Posted by user1478754 on Stack Overflow See other posts from Stack Overflow or by user1478754
Published on 2012-07-01T21:07:51Z Indexed on 2012/07/01 21:15 UTC
Read the original article Hit count: 161

Filed under:
|

I'm trying to create a screen that displays multiples items. For this, I've created a listview but I'm not sure how to approach how to add/remove items from it. Since I'm using custom listview items, I've created my own listadapter but now I need a way to add items on a button click.

Is there a way to create listview that can take an indefinite amount of items (instead of passing it in an fixed length array of View objects)? Also what's the best way to remove items from listviews? setVisibility?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-layout