Good morning, I'm trying to make the next comparison.
I have verified that both Backgrounds are the same, but still the comparison does not return a True.
if(contenedorMarcas.getBackground() ==
getResources().getDrawable(R.drawable.contenedor_marcas, null)){
datos.putBoolean("contenedorActivado", true);
}
Verifying the value of these by the AndroidStudio console I see these values, which are obviously different:
android.graphics.drawable.StateListDrawable@c749207
android.graphics.drawable.StateListDrawable@a8a7f34
How can I make this comparison correctly?