Changing color according to seek bar value
问题 I am trying to change color according to value of seek bar. I'd like colors to appear in wide range. Here is what I tried, but it doesn't give me colors I want: seekBarColor.setOnSeekBarChangeListener( new OnSeekBarChangeListener() { int progress = 0; @Override public void onProgressChanged(SeekBar seekBar, int progresValue, boolean fromUser) { progress = progresValue; int lower = Color.argb(0xFF,progress*0x10000, progress*0x100, progress)+0xff000000; color.setBackgroundColor(lower); }