Ejemplo n.º 1
0
 public void setProgressResource(int resId) {
   if (mResProgress == resId) {
     return;
   }
   mDrbProgress = UIUtils.getDrawable(resId);
   invalidate();
 }
Ejemplo n.º 2
0
 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();
 }