Android Question Convert b4xview to GifView

rkxo

Active Member
Licensed User
Longtime User
Hi
Its possible add GifView to B4xview?
B4X:
        Dim lbl1 As GifViewer
        lbl1.Initialize(Me,"")' error
        lbl1.SetGif(File.DirAssets, "loading_large.gif")
        Dim xlbl As B4XView = lbl1.GetBase
    
        p.AddView(xlbl, radius, radius, 0, 0)
    
        Dim duration As Int = animationDuration
        xlbl.SetLayoutAnimated(duration, 0, 0, radius * 2, radius * 2)
        xlbl.SetVisibleAnimated(animationDuration, True)

Thanks
 
Last edited:

rkxo

Active Member
Licensed User
Longtime User
i can't add to panel with loadlayout without designer.
Per exemple..
i have
B4X:
Dim lbl1 As GifViewer
    lbl1.Initialize(Main,"")
        lbl1.SetGif(File.DirAssets,Filename)
        Dim xlbl1 As Panel =lbl1.GetBase

i can't add with loadlayout
B4X:
  xlbl1.loadlayout(lbl1)

i want insert gifview in a recursive panel/view without design editor at runtime. its possible?
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…