protected void showProgress() { progressHUD = KProgressHUD.create(this) .setStyle(KProgressHUD.Style.SPIN_INDETERMINATE) .setCancellable(false) .setAnimationSpeed(2) .setDimAmount(0.6f) .show(); }
protected void dismissProgress() { if (progressHUD != null) { progressHUD.dismiss(); } }