Thanks for Garreau and other

There is a topic that I'm interested in. I also check why cacheColorHint 
interrupt the performance. 
#000000 means transparent to background, so the View must blend to back 
gourd very frame. It's terrible for performance.

Some reference for more information:
http://stackoverflow.com/questions/8345677/getting-black-screen-while-scrolling-in-listview-in-android

*
*
On Wednesday, July 4, 2012 11:20:19 PM UTC+8, jean-francois garreau wrote:
>
> I finally found the source of all my GC ! it comes from my activity xml 
> layout... Indeed for my expandView, I use this : 
>
>   <ExpandableListView
>        android:id="@+id/resultListResult"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:cacheColorHint="#00000000" 
>        />
>
> And if I remove this : android:cacheColorHint="#00000000"  the animation 
> is very smooth !
>
> Thanks for your help
>        
>
> Le mardi 3 juillet 2012 13:23:24 UTC+2, Kostya Vasilyev a écrit :
>>
>> A custom view, assuming it's at the root of your item layout, is just as 
>> good as a view holder.
>>
>> Here is what you can do:
>>
>> - Override onFinishInflate in your item layout root view
>> - Call this.findViewById to find children
>> - Store them as member variables
>> - Access in the adapter's getView, like itemView.mText1, itemView.mText2 
>> -- rather than doing itemView.findViewById(...)
>>
>> -- K
>>
>> 2012/7/3 jean-francois garreau <[email protected]>
>>
>>> I already saw that presentation and I can't use the ViewHolder pattern 
>>> because i need a customView. 
>>>
>>> So I'm looking for a way to optimize my CustomView because I don't know 
>>> what I'm doing wrong with this view that causing thoses GC....
>>>
>>>

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