private void showNoData() { if (selectedIndex == SYSTEM_NOTICE) { if (noticeData.size() == 0) { layoutEmptyNotice.setVisibility(View.VISIBLE); layoutEmptyNotice.showNoDataPage(NO_NOTICE_DATA); noticeListView.setVisibility(View.GONE); } } else if (selectedIndex == USER_MESSAGE) { if (titleData.size() == 0) { layoutEmptyMessage.setVisibility(View.VISIBLE); layoutEmptyMessage.showNoDataPage(NO_MESSAGE_DATA); messageListView.setVisibility(View.GONE); } } }
private void showNetWorkErrorPage() { if (selectedIndex == SYSTEM_NOTICE) { if (noticeData.size() == 0) { layoutEmptyMessage.setVisibility(View.VISIBLE); layoutEmptyNotice.showNetErrorPage(); } else { ViewUtil.showTipsToast(this, noNetTips); noticeListView.showFootText(); } } else if (selectedIndex == USER_MESSAGE) { if (messageData.size() == 0) { layoutEmptyMessage.setVisibility(View.VISIBLE); layoutEmptyMessage.showNetErrorPage(); } else { ViewUtil.showTipsToast(this, noNetTips); messageListView.showFootText(); } } }
private void showFail() { if (selectedIndex == SYSTEM_NOTICE) { if (noticeData.size() == 0) { noticeListView.setVisibility(View.GONE); layoutEmptyNotice.setVisibility(View.VISIBLE); layoutEmptyNotice.showFailPage(); } else { ViewUtil.showTipsToast(this, failTips); noticeListView.showFootText(); } } else if (selectedIndex == USER_MESSAGE) { if (titleData.size() == 0) { messageListView.setVisibility(View.GONE); layoutEmptyMessage.setVisibility(View.VISIBLE); layoutEmptyMessage.showFailPage(); } else { ViewUtil.showTipsToast(this, failTips); messageListView.showFootText(); } } }