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

Made entirely with B4X with XUI

SD_LiquidProgress

Author:
Star-Dust
Version: 0.14
  • LiquidProgress
    • Functions:
      • Class_Globals As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • Initialize (Callback As Object, EventName As String) As String
      • Invalidate
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • Wait (Milliseconds As long)
        Eg. use:
        SD_LiquidProgress1.Wait(2000)
        Sleep(2000)
    • Properties:
      • BackgroundColor As Int
      • BackgroundWaveColor As Int
      • BubbleEffectEnable As Boolean
      • BubbleIntensity As Int [0..255]
      • TextSize As Int
      • TextVisible As Boolean
      • Value As Int
        Value 0 to 100
      • WaveColor As Int
      • CircleLightEffect As Boolean

Video3.gif
Video 4.gif
Video5.gif
 

Attachments

  • aSample1.zip
    9.4 KB · Views: 1,284
  • iSample1.zip
    2.7 KB · Views: 573
  • jSample1.zip
    2.4 KB · Views: 611
  • SD_LiquidProgress 0.14.zip
    11.2 KB · Views: 85
  • jSD_LiquidProgress 0.14.zip
    11.2 KB · Views: 72
  • iSD_LiquidProgress 0.14.zip
    98.6 KB · Views: 73
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
This is not a minimum and maximum, for the type of graphics such small progressions would not be perceptible. You would need to have a very large view and in any case below 10% they would be barely visible.
 

Almora

Well-Known Member
Licensed User
Longtime User
if we think like a glass bottle, it's Decently full 100% of it, the values I use are usually between 0.1 and 4.
 

AnandGupta

Expert
Licensed User
Longtime User
0.1 to 4.0 range is 1 to 40
so you have something (X * 10) *2 to get the % for 2 to 80 and it will show correctly., X = 0.1 to 4.0
just add few to make it to 100, if you wish.
 

james_sgp

Active Member
Licensed User
Longtime User
Hi, I`m trying to use this in a Rectangle mode (width 95, height 190); but it seems the animation gets squashed and hidden. I can only get it to work, when the object is actually a square? Is this sommething that can be fixed, or i can fix?

James
 

Star-Dust

Expert
Licensed User
Longtime User
Hi, I`m trying to use this in a Rectangle mode (width 95, height 190); but it seems the animation gets squashed and hidden. I can only get it to work, when the object is actually a square? Is this sommething that can be fixed, or i can fix?

James
Even if you put a rectangular shape, it will always take the square shape in the center of the rectangle so as not to deformar with images. If the image disappears you, post an example in which you can see this defect so I can verify it.
 

james_sgp

Active Member
Licensed User
Longtime User
Even if you put a rectangular shape, it will always take the square shape in the center of the rectangle so as not to deformar with images. If the image disappears you, post an example in which you can see this defect so I can verify it.
Star Dust, attached is a samle, showing the issue.

Screenshot 2025-02-26 102519.png
 

Attachments

  • SampleLiquid-JC.zip
    9.4 KB · Views: 56
Top