On Tue, Jul 3, 2012 at 7:16 AM, jean-francois garreau
<jean.francois.garr...@gmail.com> wrote:
> I already saw that presentation and I can't use the ViewHolder pattern
> because i need a customView.

That makes absolutely no sense whatsoever.

- TextView inherits from View
- ImageView inherits from View
- CheckableTextView inherits from View
- your custom View subclass inherits from View

And:

- TextView works just fine with the ViewHolder pattern
- ImageView works just fine with the ViewHolder pattern
- CheckableTextView works just fine with the ViewHolder pattern

Hence, I am fairly comfortable that for any well-written custom View
subclass, the ViewHolder pattern can apply. There should be nothing
magic about  your particular subclass of View compared to any other.

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