コード例 #1
0
 /**
  * Sets the color of the seekbar scrubber
  *
  * @param colorStateList The ColorStateList the track will be changed to
  */
 public void setTrackColor(@NonNull ColorStateList colorStateList) {
   mTrack.setColorStateList(colorStateList);
 }
コード例 #2
0
 /**
  * Sets the color of the seekbar scrubber
  *
  * @param colorStateList The ColorStateList the track scrubber will be changed to
  */
 public void setScrubberColor(@NonNull ColorStateList colorStateList) {
   mScrubber.setColorStateList(colorStateList);
 }
コード例 #3
0
 /**
  * Sets the color of the seekbar scrubber
  *
  * @param color The color the track will be changed to
  */
 public void setTrackColor(int color) {
   mTrack.setColorStateList(ColorStateList.valueOf(color));
 }
コード例 #4
0
 /**
  * Sets the color of the seekbar scrubber
  *
  * @param color The color the track scrubber will be changed to
  */
 public void setScrubberColor(int color) {
   mScrubber.setColorStateList(ColorStateList.valueOf(color));
 }