public void hideLoading() {
   if (loadingView.isShowing() && proccesses == 0) {
     loadingView.dismiss();
     listener.onHide();
   } else {
     proccesses--;
   }
 }
 public void showLoading() {
   if (!loadingView.isShowing()) {
     loadingView.show();
     listener.onShow();
   } else {
     proccesses++;
   }
 }