public class FireBaseLiveChatAdapter extends FirebaseListAdapter<MessageModel>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
FireBaseLiveChatAdapter(DatabaseReference mRef,
android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getItemViewType(int position,
MessageModel model) |
protected android.view.View |
populateView(android.view.LayoutInflater inflater,
android.view.View v,
android.view.ViewGroup parent,
MessageModel model)
Each time the data at the given Firebase location changes, this method will be called for each item that needs
to be displayed.
|
cleanup, getCount, getItem, getItemId, getItemViewType, getView, getViewTypeCountpublic static final java.lang.String TAG
public FireBaseLiveChatAdapter(DatabaseReference mRef,
android.content.Context context)
protected int getItemViewType(int position,
MessageModel model)
getItemViewType in class FirebaseListAdapter<MessageModel>protected android.view.View populateView(android.view.LayoutInflater inflater,
android.view.View v,
android.view.ViewGroup parent,
MessageModel model)
FirebaseListAdapterYour implementation should populate the view using the data contained in the model.
populateView in class FirebaseListAdapter<MessageModel>v - The view to populatemodel - The object containing the data used to populate the view