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