B4A Library [B4X] [XUI] SD LiquidProgress (Bar)

Star-Dust

Expert
Licensed User
Made entirely with B4A with XUI

iOS Version
Desktop version

SD_LiquidProgress

Author:
Star-Dust
Version: 0.06
  • LiquidProgress
    • Functions:
      • Class_Globals As NSString*
      • DesignerCreateView (Base As NSObject*, Lbl As B4ILabelWrapper*, Props As B4IMap*) As NSString*
        Base type must be Object
      • Initialize (ba As B4I*, Callback As NSObject*, EventName As NSString*) As NSString*
      • Invalidate As NSString*
      • IsInitialized As BOOL
        Verifica se l'oggetto sia stato inizializzato.
      • Wait (Milliseconds As Long long)
        Eg. use:
        SD_LiquidProgress1.Wait(2000)
        Sleep(2000)
    • Properties:
      • BackgroundColor As Int
      • BackgroundWaveColor As Int
      • TextSize As Int
      • TextVisible As BOOL
      • Value As Int
        Value 0 to 100
      • WaveColor As Int
      • CircleLightEffect As Boolean

Video3.gif
 

Attachments

Last edited:

Star-Dust

Expert
Licensed User
Last edited:

Star-Dust

Expert
Licensed User
Update rel 0.02

You can change colors and contains a method to pause the progression but keep the animation.

B4X:
LiquidProgress1.Wait(PauseTime)
Sleep(PauseTime)
Video1.gif
 
Last edited:

Star-Dust

Expert
Licensed User
Update rel 0.03

B4X:
LiquidProgress1.TextVisible=False
 
Last edited:

Star-Dust

Expert
Licensed User
thank's
 

IlCasti

Active Member
Licensed User
Hi SD,
text progress size not follow view size.. can you fix this issue?
I like it sooo much, thank you!
 

IlCasti

Active Member
Licensed User
Hi SD,
.ProgressTextVisible = False may seem not working.. text in liquid remain.
Could you check or tell me what i'm doing wrong? --> MY MISTAKE - IT WORKS!!!

Could you also make sure that the flow of the liquid is adapted based on
the size of the view? if the view is too small, liquid is bad to look at, I don't know how to say it

Bye
 

Star-Dust

Expert
Licensed User
Update rel 0.04
 

Star-Dust

Expert
Licensed User
I started working on a version where the view fills with Beer. Very refreshing.
I need to improve the foam ... I'll study it a little bit

Unfortunately, I will not be able to distribute it

Video1.gif
 
Top