/** 设置进度条按钮图片 */ public void setProgressThumbDrawable(@DrawableRes int thumbId) { if (thumbId > 0) { Drawable drawable; if (Build.VERSION.SDK_INT >= 21) { drawable = getResources().getDrawable(thumbId, null); } else { drawable = getResources().getDrawable(thumbId); } if (drawable != null && mCsb != null) { mCsb.setThumb(drawable); } } }