Inspired by MBProgressHUD for iOS.
Android 2.3 and later
Comming soon
You can download and import the library folder as module to your project.
The usage of KProgressHUD is pretty straight forward. You create the HUD, customize its style and show it on the UI thread. Then fire a background thread to work on long-running tasks. When done, call dismiss()
to close it (if you use a determinate style, the HUD will automatically dismiss if progress reach its max).
KProgressHUD.create(MainActivity.this)
.setStyle(KProgressHUD.Style.INDETERMINATE)
.setLabel("Please wait")
.setDetailsLabel("Downloading data");
.setCancellable(true)
.setAnimationSpeed(2)
.setDimAmount(0.5f)
.show();
See Javadocs for more information.
This code is distributed under MIT license.