Changing the TextView color depending on the progress of a SeekBar
问题 I am trying to change the color of the TextView depending on the SeekBar 's progress as following: 0-25% -> green 25%-50% -> yellow and so on... When I using the following code, the TextView doesn't show the value anymore. I would greatly appreciate any help! Code: public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { textView.setText(String.valueOf(progress + "%")); if(progress >= 25 && progress < 50) textView.setTextColor(R.color.Yellow); else if(progress >= 50 &&