uk.co.ribot.easyadapter
Class ViewHolder

java.lang.Object
  extended by uk.co.ribot.easyadapter.ViewHolder
Direct Known Subclasses:
ItemViewHolder

public abstract class ViewHolder
extends Object

Extend this class if you want to hold the child views of a given view, i.e it can be used to hold the views of a Fragment after inflating it's layout. Annotate the view fields with ViewId, i.e @ViewId(R.id.textView1). It will look for the viewId's in the given parent view and will assign the views to the annotated fields of the subclass.


Constructor Summary
ViewHolder(View view)
           
 
Method Summary
 View getView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewHolder

public ViewHolder(View view)
Parameters:
view - the parent view where the held views reside
Method Detail

getView

public View getView()
Returns:
the view that was set with #ViewHolder(android.view.View)