Permalink
Commits on Jan 4, 2012
  1. Merge branch 'master' of github.com:rtyley/android-viewholder-listviews

    rtyley committed Jan 4, 2012
    Conflicts:
    	src/main/java/com/madgag/android/listviews/ReflectiveHolderFactory.java
    	src/main/java/com/madgag/android/listviews/ViewHolderFactory.java
  2. Support distinct factory for dropdown views (for spinners)

    rtyley committed Jan 4, 2012
    This is a fairy significant change in that the ViewHolderFactory must now
    declare the class of the returned viewholder - and for the adapter to work
    correctly, the holder must be of exactly that class, NOT a subclass.
    
    I think this should be okay, let's see how this pans out...
  3. Support distinct factory for dropdown views (for spinners)

    rtyley committed Jan 4, 2012
    This is a fairy significant change in that the ViewHolderFactory must now
    declare the class of the returned viewholder - and for the adapter to work
    correctly, the holder must be of exactly that class, NOT a subclass.
    
    I think this should be okay, let's see how this pans out...
Commits on Dec 30, 2011
  1. Remove BaseViewHolder - it nudged towards suboptimal implementations

    rtyley committed Dec 30, 2011
    There might be a role for a BaseViewHolder, but holding a reference to the
    top-level view isn't it - the implementation of a ViewHolder should fully
    examine the view in the *constructor*, finding all required sub-views -
    because the last thing you want to do is repeat that work to find sub-views
    with every invocation of updateViewFor(item).
    
    This means that you really have no reason to retain a reference to the
    original parent view... holding the reference just takes up a bit of memory
    and encourages bad implementations :)
  2. Reinstate Kevin as correct copyright holder for this class ;)

    rtyley committed Dec 30, 2011
    Also make test name match impl class so IDE can find test...
Commits on Dec 29, 2011
  1. Merge branch 'reflection'

    rtyley committed Dec 29, 2011
  2. Change factory construction to use static convenience method

    rtyley committed Dec 29, 2011
    Gives a slightly more concise constructor (avoids generic):
    
    factory = new ReflectiveHolderFactory<Comment>(CommentHolder.class);
    
    vs
    
    factory = reflectiveFactoryFor(CommentHolder.class);
Commits on Dec 21, 2011
  1. Merge pull request #2 from kevinsawicki/patch-2

    rtyley committed Dec 21, 2011
    Correct constructor capitalization in README
  2. Add holder factory implementation that uses reflection

    kevinsawicki committed Dec 21, 2011
    The new ReflectiveHolderFactory is created with a ViewHolder class
    and the arguments that the view holder should be constructed with.
Commits on Dec 20, 2011
Commits on Dec 16, 2011
  1. Merge pull request #1 from kevinsawicki/patch-1

    rtyley committed Dec 16, 2011
    Fence code blocks with as Java
Commits on Jun 4, 2011
Commits on May 26, 2011
Commits on Apr 13, 2011
  1. Add readme with quick example

    rtyley committed Apr 13, 2011
  2. Initial commit of Android ViewHolder ListViews, taken from Agit

    rtyley committed Apr 13, 2011
    The 'ViewHolder' pattern is described by Romain Guy in this talk:
    
    "Google I/O 2009 - Turbo-charge your UI: How to Make your Android UI Fast and Efficient"
    
    http://www.youtube.com/watch?v=N6YdwzAvwOA