I have made a UI that has images with varying heights, but constant width, added to each inner linearLayout (having vertical orientation). This way, I am able to add images without spaces occuring due to different heights. Using a listView that has 3 images of different heights added horizontally in a row, I will get empty spaces in a row, and I want to avoid them. So listView would not serve the purpose.
On Sat, Mar 31, 2012 at 4:00 PM, Mark Murphy <mmur...@commonsware.com>wrote: > On Sat, Mar 31, 2012 at 6:54 AM, Farhan Tariq <farhan....@gmail.com> > wrote: > > I have one LinearLayout as child of the scrollView, and that linearLayout > > has 3 linear layouts that I am adding images to. Now, I can't figure out > how > > to handle memory issues. > > *Why* are you using a ScrollView instead of a ListView? A ListView > with all disabled rows should be indistinguishable from a ScrollView > to the user (off the top of my head), and it gives you the ability to > recycle your views. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 > Available! > > -- > 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+unsubscr...@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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en