Android Question XUI Views - AnotherProgressBar animation from Right to Left

Armani

Member
Hello All,

I'm requesting your help if you know how to fix it.

I would like to know if it's possible to set the animation of AnotherProgressBar from Right to Left ?

I saw this post from @LucaMs that is visually matching my expectation... I'm suspecting it's done with something like

B4X:
AnotherProgressBar1.mBase.Rotation=180

... but, this is not what I want... I need to have progressbar size according to Value from Left to Right

To make my request clear :D, here below the expected result

AnotherProgressBar.gif


Many thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You will need to modify the code. Unzip XUI Views.b4xlib and extract the module. Rename it and add it to your project.

You need to play with the brush offset:
B4X:
If Vertical Then
            BusyBrush.SrcOffsetY = BusyBrush.SrcOffsetY + BrushOffsetDelta
        Else
            BusyBrush.SrcOffsetX = BusyBrush.SrcOffsetX + BrushOffsetDelta
        End If
 
Upvote 0
Top