color testing
This commit is contained in:
parent
53f6414f70
commit
8cd56777cc
@ -50,10 +50,6 @@ public class QRPayAdapter extends RecyclerView.Adapter<QRPayAdapter.ViewHolder>
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
|
||||
|
||||
int colorRes = colors[position % colors.length];
|
||||
holder.itemView.setBackgroundResource(colorRes);
|
||||
|
||||
QRPayItem item = items.get(position);
|
||||
holder.binding.setText(item.title);
|
||||
holder.binding.setIcon(item.icon);
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
android:layout_weight="1"
|
||||
android:clipToPadding="false"
|
||||
android:nestedScrollingEnabled="false"
|
||||
android:background="@color/transparent"
|
||||
android:padding="16dp"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user