public void setProgressResource(int resId) { if (mResProgress == resId) { return; } mDrbProgress = UIUtils.getDrawable(resId); invalidate(); }
public void setProgressBackgroundResource(int resId) { if (mResBackground == resId) { return; } mResBackground = resId; try { mDrbBackground = UIUtils.getDrawable(resId); if (null != mDrbBackground) { mDrbBackground.setBounds(0, 0, getWidth(), getHeight()); } } catch (Exception e) { mDrbBackground = null; mResBackground = -1; } invalidate(); }