@Override
 protected void callBackForGetDataFailed(int type, XtomNetTask task) {
   switch (task.getId()) {
     case TaskConstant.GET_ACCOUNT_LIST:
       if ("刷新".equals(task.getDescription())) {
         layout.refreshFailed();
         failed();
       }
       if ("加载".equals(task.getDescription())) {
         layout.loadmoreFailed();
       }
       break;
   }
 }
 @Override
 protected void noNetWork(XtomNetTask task) {
   switch (task.getId()) {
     case TaskConstant.GET_ACCOUNT_LIST:
       if ("刷新".equals(task.getDescription())) {
         layout.refreshFailed();
         failed();
       }
       if ("加载".equals(task.getDescription())) {
         layout.loadmoreFailed();
       }
       break;
   }
   super.noNetWork(task);
 }
 @Override
 protected void callBackForServerFailed(int taskID, XtomNetTask task, BaseResult result) {
   switch (task.getId()) {
     case TaskConstant.GET_ACCOUNT_LIST:
       if ("刷新".equals(task.getDescription())) {
         layout.refreshFailed();
         failed();
       }
       if ("加载".equals(task.getDescription())) {
         layout.loadmoreFailed();
       }
       break;
     default:
       break;
   }
 }