Yes, you can do this in the RecyclerViews onBindViewHolder method by specifying each map at that position.
public void onBindViewHolder(MyViewHolder holder, int position) { if(position==1) holder.view.setBackgroundColor(Color.RED); else if(position==2) holder.view.setBackgroundColor(Color.parseColor("#amberColorCode"));
here, view is your TextView or any other view that you use as a RecyclerView row element.
source share