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); }
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); }
public void showLoading() { View layout = helper.inflate(R.layout.pager_loading); helper.showLayout(layout); }