Example #1
0
 // show loading view when init and loading data from network
 protected void showLoadingEmptyView() {
   if (mEmptyFailView == null) {
     mEmptyLoadingView = EmptyViewUtils.createLoadingView(this);
   }
   ((ViewGroup) listView.getParent()).removeView(mEmptyFailView);
   ((ViewGroup) listView.getParent()).addView(mEmptyLoadingView);
   listView.setEmptyView(mEmptyLoadingView);
 }