setBackground when the back returns a different data

0

I have a problem in recyclerView that makes a call to a server and returns some data to me.

What I am trying to do is that when one of those data changes I change the background of all the items that contain that data different from the previous one.

Example of the item:

textView: PM5 - COLOR BLUE SHIRT
texView: stock: 1 textView: temporada: 18

textView: PM5 - COLOR BLUE SHIRT
texView: stock: 2 textView: temporada: 18

textView: PM5 - COLOR BLUE SHIRT
texView: stock: 5 textView: temporada: 18

Here the call returns another product:

textView: PM5 - COLOR RED SHIRT
texView: stock: 2 textView: temporada: 18

textView: PM5 - COLOR RED SHIRT
texView: stock: 5 textView: temporada: 18

textView: PM5 - COLOR RED SHIRT
texView: stock: 3 textView: temporada: 18

I would like to change the background when the textView containing PM5 - COLOR... is different from the previous one.

    
asked by Armando Poveda 06.06.2018 в 11:27
source

0 answers