[android-developers] Bind a list of items to a view that doesn't act like a list
I have a collection of objects that I want to display in a scroll
viewer. I played around with a ListView and setting things like
setting focusable to false or clickable to false, etc, but it didn't
look/act like I wanted it to. I just want scrollable text (don't
highlight each item when focused or touched, don't highlight the list
itself when focused or touched, but allow me enough "focusability" to
actually scroll the thing, etc). I tried ALOT of attributes on the
ListView and the child items to turn off its "listiness", but none
worked as expected and always left a trace of list behavior.
The only way I have gotten this to work to my liking is to loop
through my list, construct a bunch of TextViews and add them to a
LinearLayout, but I hate the way the code looks. I also considered
building an html string with the Html helper functions, but that's
weak from both a code standpoint and because css doesn't seem to be
supported (and I'm not going back to font tags!).
I can't seem to find a stream lined way to do this. Is there such a
thing as defining a layout in xml and binding it to some kind of list
without creating something that acts like a list view?
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home