diff --git a/app/src/main/java/com/example/cosmosclient/views/CheeseDynamicAdapter.java b/app/src/main/java/com/example/cosmosclient/views/CheeseDynamicAdapter.java index 79afe5b..5c62d2b 100644 --- a/app/src/main/java/com/example/cosmosclient/views/CheeseDynamicAdapter.java +++ b/app/src/main/java/com/example/cosmosclient/views/CheeseDynamicAdapter.java @@ -1,6 +1,7 @@ package com.example.cosmosclient.views; import android.content.Context; +import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -28,6 +29,29 @@ } else { holder = (CheeseViewHolder) convertView.getTag(); } + switch (position) { + case 0: + convertView.setBackgroundColor(Color.argb(100, 200, 100, 100)); + break; + case 1: + convertView.setBackgroundColor(Color.argb(100, 200, 200, 100)); + break; + case 2: + convertView.setBackgroundColor(Color.argb(100, 100, 100, 100)); + break; + case 3: + convertView.setBackgroundColor(Color.argb(100, 200, 100, 200)); + break; + case 4: + convertView.setBackgroundColor(Color.argb(100, 100, 200, 100)); + break; + case 5: + convertView.setBackgroundColor(Color.argb(100, 100, 200, 200)); + break; + case 6: + convertView.setBackgroundColor(Color.argb(100, 100, 100, 200)); + break; + } holder.build(getItem(position).toString()); return convertView; }