android - Add items to view dynamically or hide and then show -
i'm developing android app has listview of items. of these items have image representing item. image shown in listview. however, of items have more images behind them user can show.
our designer (:x) wishes images shown directly inside listview. each list item has "more" images shows "more" button. if user clicks button list item should grow , display these images.
i'm seeing 2 options implement this:
- add "more" images dynamically items views. don't know if standard listview can handle when list items change. problem?
- add "more" images when create item view (in
getview
inside list adapter) , hide them default , when user clicks more show them.
which of 2 options "better" in terms of performance , ease of implementation? if these 2 options stupid (because changing item views on demand) maybe argue open activity show images need reason this.
http://developer.android.com/reference/android/widget/expandablelistview.html
expandablelistview friend :)
Comments
Post a Comment