Using a relative layout did help in this case - after some more
testing, I found that TextView is still causing problems when
maxLines=1 / singleLine=true. Taking the same relative layout, I can
toggle those on and off, and cause a stackoverflowexception when
they're on. This is only on 1.5, later os versions work great.

Is there a way to specify a 1.5 layout folder though, similar to the
drawable resources, or landscape folders? Something like:

   /layout
      mylayout.xml

  /layout-v3
      mylayout.xml

if running on 1.5, then the second layout would be used, if not, then
the layout in the general /layout folder would be used?:

Thanks


On Sep 14, 3:21 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> I wonder what would happen of you used RelativeLayout for the entire list
> item.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 14.09.2010 23:04 пользователь "Mark Wyszomierski" <mar...@gmail.com>
> написал:
>
> A bit of additional information found through more testing - if I
> restrict each of the textviews to be at most one line with the
> following:
>
>  android:maxLines="1"
>  android:singleLine="true"
>
> then it works fine (even with the background drawable set). If I let
> any one of the text views go more than one line in height, the
> exception will be thrown. It is thrown as soon as I start scrolling
> (for example, even if I scroll very slowly, by one pixel). My list
> adapter isn't getting called to fetch another view as all are on
> screen at this point, it looks like some drawing state which happens
> when the list is being animated maybe? I'm not sure what other
> combinations I can try here in attributes on the text views, I was
> hoping that setting:
>
>  android:ellipsize="none"
>  android:singleLine="false"
>
> would get around whatever state it being hit, but no luck,
>
> Thanks
>
> On Sep 14, 11:29 am, Mark Wyszomierski <mar...@gmail.com> wrote:
>
>
>
> > Cool I'll check out those facil...

-- 
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

Reply via email to