B4A Library AnimateProgressBar - Standard Progress Bars are Animated Now

Hi
This library animates standard progress bars. It doesn't add any view

ezgif.com-video-to-gif.gif


Animation is smoother on a real device. this is a gif.

Example:
B4X:
Sub Globals

    Private ProgressBar1 As ProgressBar
    Private RndPb As Button
    Dim apb As AnimateProgressBar

End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Main")
End Sub

Sub RndPb_Click
    apb.SetProgressAnimated(ProgressBar1,Rnd(0,101))
End Sub
 

Attachments

  • AnimateProgressBar.zip
    2.4 KB · Views: 354

Erel

B4X founder
Staff member
Licensed User
Longtime User
At this point there is really no reason to create such platform specific libraries. There are already cross platform libraries that implement such features.

Two examples:
1. AnotherProgressBar from XUI Views (which is a bit more fancy).
2. B4XProgressBar which is very similar to the one that you created: https://www.b4x.com/android/forum/threads/b4x-xui-b4xprogressbar.90826/ (but can be customized)
B4XProgressBar.gif


Libraries written in B4X are better as they are cross platform and developers can further customize them.
 
Top