0
textView.setText(context.getClass().getSimpleName());

Why does this code works and sets the textView "App" , BUT whith if

 if(context.getClass().getSimpleName() == "App") {
           holder.textView.setTextColor(Color.RED);
       }

It does not work. Why doesn't it? Sorry for dumbness. I'm new in this

Zhambulable
  • 1,053
  • 2
  • 9
  • 17

0 Answers0