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