Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if (list.get(position).getSupplement().charAt(0) == '*' && list.get(position).getSupplement().charAt(1) == '*') {
  2. System.out.println("supplement : " + list.get(position).getSupplement());
  3. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
  4. holder.cardView.setCardBackgroundColor(context.getResources().getColor(R.color.colorPrimaryDark, null));
  5. notifyDataSetChanged();
  6. } else {
  7. holder.cardView.setCardBackgroundColor(context.getResources().getColor(R.color.colorPrimaryDark));
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement