Android Question Dialogs lib + GifDecoder lib

stanks

Active Member
Licensed User
B4X:
Dim dlg As CustomDialog2
Dim pnl As Panel
pnl.Initialize("pnl")
pnl.LoadLayout("all_finished")
gif.DisposeFrames
gif.Load(File.DirAssets, "finished.gif")
Frame = 0
Timer5.Interval = gif.Delay(Frame)
ImageView1.Bitmap = gif.Frame(Frame)
ImageView1.Gravity = Gravity.FILL
Timer5.Enabled = True
dlg.AddView(pnl, 77%x, 60%y)
ImageView1.Left = (pnl.Width - ImageView1.Width) / 2
Label1.Left = (pnl.Width - Label1.Width) / 2
dlg.Show("Info", "OK", "", "", Null)

this doesn't work. no animation and no error. i get only image (1st frame?). Log(gif.FrameCount) returns 8 for this gif. where is the problem? i have b4a 5.8 and latest versions of libs that works with 5.8

thanks
 

DonManfred

Expert
Licensed User
Upvote 0
Top