Thanks Mark - so I set the width of the TextView to
"1000dp" (overkill? ;) ) and that works. i.e. its a workaround.

I'm pretty sure its nothing I'm doing in the ListActivity. My code is
pretty much the same as the EfficientAdapter list demo in ApiDemos
(but without reusing views).

If its a bug, its quite an ugly one because when a list item does not
fill_parent width then it looks very ugly when selected.

BTW, I don't reuse views in this case because there are only about 6
items in the list, and the list is short enough to fit on most
screens.

On Mar 3, 10:30 pm, Mark Murphy <[email protected]> wrote:
> westmeadboy wrote:
> > I'm inflating them using: inflate(R.layout.whatever, null)
>
> > I just tried it your way but I get the same result.
>
> Phooey. That solves some layout problems with list rows, though usually
> with RelativeLayouts as rows, not just TextViews. I figured it was worth
> a shot.
>
> > BTW, in getView(), I never reuse the convertView. I just inflate a new
> > one each time.
>
> Please recycle!
>
> http://commonsware.com/Android/excerpt.pdf
>
> > Anyway, isn't it odd that windowIsFloating should affect things in
> > this way?
>
> Oh, it's certainly odd. I'm just trying to figure out if it's odd
> because there's a problem in your implementation that it is uncovering,
> or if it is odd because of a problem in Android. The former is probably
> fixable.
>
> I am assuming that the actual ListView is the proper width, given your
> described symptoms.
>
> On a whim, try setting the width to some fixed value that's going to be
> bigger than what wrap_content is giving you. Does that take effect? This
> isn't a long-term solution, mind you -- I'm just trying to figure out if
> you have control over the row widths at all.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Online Training: 26-30 April 2010:http://onlc.com

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