Ejemplo n.º 1
0
 public void setProgressResource(int resId) {
   if (mResProgress == resId) {
     return;
   }
   mDrbProgress = UIUtils.getDrawable(resId);
   invalidate();
 }
Ejemplo n.º 2
0
 @Override
 protected View createSuccessView() {
   BaseListView listView = new BaseListView(UIUtils.getContext());
   AppAdapter appAdapter = new AppAdapter(listView, mDatas);
   listView.setAdapter(appAdapter);
   return listView;
 }
Ejemplo n.º 3
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();
 }