If the sizes of the views are pretty predictable due to their content, i'd
go the smarter route and wrap the data with a 'smart' layer with the proper
row division, this will allow you to use a Listview and benefit from its
optimizations.
(If your data is a, bbb,cc, dd, eeee, wrap it in a new data structure that
pre-calculates the proper rows - {a, bbb}. {cc,dd}, {eeee} and etc).
If it is not predictable, I usually find that in such instances it takes
less time to write such a component yourself than to try and force other
components to behave in your desired fashion.
which means, take a scrollview and linearlayout and starting filing in the
layout yourself.
On Monday, November 26, 2012 10:51:58 AM UTC-5, Gal Ben-Haim wrote:
>
> I actually don't want to scroll horizontally at all.
>
> I want items to be places from left to right, and warp to the next row
> when there's not enough room for the next item. also, this should scroll
> vertically.
>
> On Mon, Nov 26, 2012 at 5:42 PM, bob <[email protected]<javascript:>
> > wrote:
>
>> This widget is no longer supported. Other horizontally scrolling widgets
>> include
>> HorizontalScrollView<http://developer.android.com/reference/android/widget/HorizontalScrollView.html>
>> and
>> ViewPager<http://developer.android.com/reference/android/support/v4/view/ViewPager.html>
>> from
>> the support library.
>>
>> sic
>>
>> On Monday, November 26, 2012 8:50:56 AM UTC-6, Gal Ben-Haim wrote:
>>>
>>> I'm facing the same problem as this old question.
>>>
>>> I want to create an horizontal wrapping (and vertical scrolling)
>>> ListView,
>>> for example:
>>>
>>> 111111 222 3333
>>> 44 55555555 66
>>> 7 88888888888 9
>>>
>>> where each numbers group is a list item.
>>>
>>> I found this old answer suggesting using a Gallery widget, but it only
>>> allows to scroll horizontally.
>>>
>>> how can I create such view ?
>>>
>>>
>>> On Friday, January 8, 2010 1:52:09 AM UTC+2, Romain Guy wrote:
>>>>
>>>> You can use a Gallery widget.
>>>>
>>>> On Thu, Jan 7, 2010 at 3:48 PM, Marcus <[email protected]> wrote:
>>>> > I'm attempting to create a list view that shows clickable items that
>>>> > wrap horizontally much like the To/From/CC/BCC fields in OS X and the
>>>> > iPhone's Mail programs or like the TO field in Facebook's messages
>>>> > (really like most mail programs). My questions are:
>>>> >
>>>> > 1. Is there a way to do this with a ListView? Everything I've seen and
>>>> > experimented with is either horizontal scrolling or vertically
>>>> > stacking, but not horizontal wrapping. If there's a way, would you
>>>> > point me in the right direction as far as first steps to take to
>>>> > implement it?
>>>> >
>>>> > 2. Is anyone aware of an existing app with available source that has a
>>>> > view like this that I could look at as an example? The Google Mail/SMS
>>>> > apps just have single strings that are not clickable for those fields.
>>>> >
>>>> > --
>>>> > 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
>>>> > android-developers+**[email protected]
>>>> > For more options, visit this group at
>>>> > http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>> >
>>>>
>>>> --
>>>> Romain Guy
>>>> Android framework engineer
>>>> [email protected]
>>>>
>>>> Note: please don't send private questions to me, as I don't have time
>>>> to provide private support. All such questions should be posted on
>>>> public forums, where I and others can see and answer them
>>>>
>>>> --
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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 [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