Ok I will try that thanks !

But I think the problem is somewhere else  because, I comment all the code 
of my adapter in order to return static string for fix number of child and 
group items and I still have lots of GC.... So the problem maybe doesn't 
comes finally from my CustomView....

I will look deeper into that direction and after, i will look at your 
advice with SpannableStringBuilder

regards

Le mardi 3 juillet 2012 14:24:38 UTC+2, Mark Murphy (a Commons Guy) a 
écrit :
>
> On Tue, Jul 3, 2012 at 7:48 AM, jean-francois garreau 
> <jean.francois.garr...@gmail.com> wrote: 
> > Ok so can you please explain me how to do a view like this : 
> > 
> > ---------------------- 
> > NameMovie 
> > 1h20min 
> > 11:00am | 2:00pm | 4:00pm | 8:00pm | 10:00pm 
> > --------------------- 
>
> That is a single TextView, assuming your lines of dashes are supposed 
> to be the ListView row divider lines (and therefore are not part of 
> your actual row). Use SpannableStringBuilder, along with 
> ForegroundColorSpan and StyleSpan, to handle the color changes and 
> weight (bold vs. not) changes. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>

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