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 <jean.francois.garr...@gmail.com> > 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 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