Skip to content

An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.

License

Notifications You must be signed in to change notification settings

tuanha1305/KProgressHUD

Repository files navigation

KProgressHUD

License: MIT

Inspired by MBProgressHUD for iOS.

Compatibility

Android 2.3 and later

Adding KProgressHUD to your project

Gradle

Comming soon

Source code

You can download and import the library folder as module to your project.

Usage

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.

License

This code is distributed under MIT license.

About

An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%