On Sat, Mar 31, 2012 at 7:14 AM, Farhan Tariq <[email protected]> wrote:
> 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.

If you have three images of varying heights in a horizontal row, you
"will get empty spaces in a row", regardless of whether the row is in
a ListView or a ScrollView or anything else.

You appear to be comparing apples (three images in a vertical
LinearLayout) with oranges (three images in a horizontal LinearLayout
in a ListView row).

Regardless, ScrollView does not offer much that will help you in the
way of trying to hack in a recycling model. Whether you use an
existing AdapterView (e.g., ListView) or roll your own, I suspect that
is your clearest path to a solution.

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to