コード例 #1
0
 public void showEmpty(String emptyMsg) {
   View layout = helper.inflate(R.layout.page_no_data);
   TextView textView = (TextView) layout.findViewById(R.id.tv_no_data);
   if (!TextUtils.isEmpty(emptyMsg)) {
     textView.setText(emptyMsg);
   }
   helper.showLayout(layout);
 }
コード例 #2
0
 public void showNetworkError(View.OnClickListener onClickListener) {
   View layout = helper.inflate(R.layout.pager_error);
   Button againBtn = (Button) layout.findViewById(R.id.pager_error_loadingAgain);
   if (null != onClickListener) {
     againBtn.setOnClickListener(onClickListener);
   }
   helper.showLayout(layout);
 }
コード例 #3
0
 public void restore() {
   helper.restoreView();
 }
コード例 #4
0
 public void showLoading() {
   View layout = helper.inflate(R.layout.pager_loading);
   helper.showLayout(layout);
 }