예제 #1
0
파일: MessageCenter.java 프로젝트: kkme/HZC
 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
파일: MessageCenter.java 프로젝트: kkme/HZC
 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();
     }
   }
 }
예제 #3
0
파일: MessageCenter.java 프로젝트: kkme/HZC
 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();
     }
   }
 }