T - The class type to use as a model for the data contained in the children of the given Firebase location
public abstract class FirebaseListAdapter<T>
This class is a generic way of backing an Android ListView with a Firebase location.
It handles all of the child events at the given Firebase location. It marshals received data into the given
class type. Extend this class and provide an implementation of populateView, which will be given an
instance of your list item mLayout and an instance your class that holds your data. Simply populate the view however
you like and this class will handle updating the list as the data changes.
public com.firebase.client.Firebase getRef(int position)
public long getItemId(int i)
public View getView(int i,
protected abstract void populateView(View v,
Each time the data at the given Firebase location changes, this method will be called for each item that needs
to be displayed. The arguments correspond to the mLayout and mModelClass given to the constructor of this class.
Your implementation should populate the view using the data contained in the model.
v - The view to populate
model - The object containing the data used to populate the view