Friday, August 19, 2011

[android-developers] Android adapter returning LinearLayout

I have a custom adapter for ListView and I need to return LinearLayout
from getView(). The reason I'm doing it is that I have custom
component which extends LinearLayout and need to be created from code.
The problem is that if I return any LinearLayout from getView(), the
application crashes. How can I get it working? I can't inflate the
View from xml, everything has to be done via code.

Thanks

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

No comments:

Post a Comment