Sunday, May 5, 2013

[android-developers] Re: How to add a footer to each list item dynamically?

Ignore all other suggestions as they are horrible (sorry guys). Any suggestion that has more than one ListView is a bad idea, you wouldn't be able to see any of the additional listviews once the first one is bigger than the screen or you'll have to share screen space between them.

Your best bet is just go manual on everything. Either use a LinearLayout inside a scroll view and generate the sub items as they should including the "headers" and "footers" and lose the nice view recycling of ListView or use a ListView with an adapter than had 3 sub types of view, one for headers, one for normal list item and one that recreates the ListView Items with a "more" items in it (with the proper code the list won't move when you reload the items.. you can look for tutorials on endless listviews to get the idea).
You could also use an ExpandbleListView, which is the simplest route, but you lose the ability to see "Subitem 1.1", "Subitem 1.2" when the list is contracted.

On Friday, April 19, 2013 9:11:37 PM UTC+3, robhic wrote:

Hello, I need help with the following, I need to do something like this:

achieved do everything but I lack the foot ("More items...") per item, which when selected, to obtain the other items:


I failed to do, and I wonder if someone can help me with this, please...

Regards, Robert


--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate