Latest version is included in XUI Views library.
This is a custom view that can be used as an alternative to indeterminate progress bars.
It is compatible with B4A, B4J and B4i.
Inspired by: https://github.com/81813780/AVLoadingIndicatorView
Add with the designer and set the style:
Tips
- It will work properly in debug mode but will not be smooth. Should look good in release mode.
- You can change the duration of a single cycle. The default is 1000ms. For some of the types such as Arc 1 and Arc 2 it makes sense to change it to about 2000.
- See the code. Shouldn't be difficult to add more types of animations.
- In B4A you should add this code in Activity_Resume:
The class which is compatible with B4A, B4i and B4J is included inside the attached B4A example.
This is a custom view that can be used as an alternative to indeterminate progress bars.
It is compatible with B4A, B4J and B4i.
Inspired by: https://github.com/81813780/AVLoadingIndicatorView
Add with the designer and set the style:
Tips
- It will work properly in debug mode but will not be smooth. Should look good in release mode.
- You can change the duration of a single cycle. The default is 1000ms. For some of the types such as Arc 1 and Arc 2 it makes sense to change it to about 2000.
- See the code. Shouldn't be difficult to add more types of animations.
- In B4A you should add this code in Activity_Resume:
B4X:
Sub Activity_Resume
For Each v As View In Activity.GetAllViewsRecursive
If v.Tag Is B4XLoadingIndicator And v.Visible = True Then
Dim x As B4XLoadingIndicator = v.Tag
x.Show
End If
Next
The class which is compatible with B4A, B4i and B4J is included inside the attached B4A example.
Attachments
Last edited: