Progress Lottie IGB
Manager of progress using Lottie JSON, compatible for Java and Kotlin.
Int Top | In Bottom |
---|---|
![]() |
![]() |
Important Info:
To create a raw folder:
- Right-click the res folder.
- Choose New.
- Choose Android Resource Directory.
- Name the directory raw.
- In the Resource Types Section add raw.
- Click ok.
- Copy your JSON lottie in RAW folder
New options for personality:
- Size text message
- Style Dialog
- Color text message
- Add font for text
Add font for your project check documents:
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
KOTLIN CODE
Code:
StartLoading Whith Simple Method:
Remove progress:
Example:
Use cancel button:
This method the user will active for cancel any process.
Add this implement in your class: Kotlin IProgressLoadingActions
Example:
JAVA CODE
It is recommended to use Java 8 onwards.
Code:
StartLoading Whith Simple Method:
Remove progress:
Example:
Use cancel button:
This method the user will active for cancel any process.