public interface ChatMesssageRenderer
Modifier and Type | Method and Description |
---|---|
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent,
ChatLine chatLine)
An implementation that is provided that will take a chat message and provide for a visual
representation of that message.
|
android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent, ChatLine chatLine)
position
- The position of the item within the adapter's data set of the item whose view
we want.convertView
- The old view to reuse, if possible. Note: You should check that this view
is non-null and of an appropriate type before using. If it is not possible to convert
this view to display the correct data, this method can create a new view.
Heterogeneous lists can specify their number of view types, so that this View is}).parent
- The parent that this view will eventually be attached tochatLine
- the current chat line