diff --git a/app/src/main/java/org/ntlab/irisclient/MemberListAdapter.java b/app/src/main/java/org/ntlab/irisclient/MemberListAdapter.java new file mode 100644 index 0000000..b18a537 --- /dev/null +++ b/app/src/main/java/org/ntlab/irisclient/MemberListAdapter.java @@ -0,0 +1,38 @@ +package org.ntlab.irisclient; + +import android.content.Context; +import android.graphics.Color; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.TextView; + +import org.ntlab.irisclient.models.Member; + +public class MemberListAdapter extends ArrayAdapter { + + private LayoutInflater mLayoutInflater; + + final int redColor = Color.rgb(172, 32,32); + final int blueColor = Color.rgb(32, 32, 172); + final int grayColor = Color.rgb(172, 172, 172); + + public MemberListAdapter(Context context) { + super(context, 0); + mLayoutInflater = LayoutInflater.from(context); + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + View root = mLayoutInflater.inflate(R.layout.activity_member_room, null); + + String item = getItem(position); + + root.setBackgroundColor(redColor); + + + return root; + } + +}