Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (list.get(position).getSupplement().charAt(0) == '*' && list.get(position).getSupplement().charAt(1) == '*') {
- System.out.println("supplement : " + list.get(position).getSupplement());
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
- holder.cardView.setCardBackgroundColor(context.getResources().getColor(R.color.colorPrimaryDark, null));
- notifyDataSetChanged();
- } else {
- holder.cardView.setCardBackgroundColor(context.getResources().getColor(R.color.colorPrimaryDark));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement