Back to project page Android-MultiPaneStream.
The source code is released under:
Apache License
If you think the Android project Android-MultiPaneStream listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.ichigotake.multipanestream.stream; //from w w w. j ava 2 s .c om import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import net.ichigotake.multipanestream.R; import net.ichigotake.multipanestream.sdk.Message; public class StreamAdapter extends ArrayAdapter<Message> { public StreamAdapter(Context context) { super(context, R.layout.message_item); } @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = new MessageView(getContext()); } MessageView messageView = (MessageView) convertView; messageView.setMessage(getItem(position)); return convertView; } }