Пример #1
0
 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);
     }
   }
 }
Пример #2
0
 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();
     }
   }
 }