Android Question SimpleMediaManager B4XGIFVIEW

Nkalampika

Active Member
Licensed User
hello how to reduce the size of this gif image ???

Screenshot_20211020-041822.jpg
 

Nkalampika

Active Member
Licensed User
While loading the image that will be displayed, I would like to see a loading image first. so i took a gif for loadingWhile loading the image that will be displayed, I would like to see a loading image first. so i took a gif for loading
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
While loading the image that will be displayed, I would like to see a loading image first. so i took a gif for loadingWhile loading the image that will be displayed, I would like to see a loading image first. so i took a gif for loading
place the B4XGifView inside a panel and adjust the panel to your desired measurements.

exe.
1634795469798.png
 

Attachments

  • 1.gif
    1.gif
    11.8 KB · Views: 108
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
place the B4XGifView inside a panel and adjust the panel to your desired measurements
This is not how it works with SMM.

You can do it like this:
1. Don't add a loading media with AddLocalMedia.
2. Add a small panel above the main one, that will show the loading media.
B4X:
'Pane2 is the main panel
Pane2.Visible = False
MediaManager.SetMediaFromFile(pnlLoading, File.DirAssets, "loading.gif", "image/gif", Null)
MediaManager.SetMediaWithExtra(Pane2, "https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico", "", CreateMap(MediaManager.REQUEST_CALLBACK: Me))
Wait For (Pane2) SMM_MediaReady (Success As Boolean, Media As SMMedia)
pnlLoading.SetVisibleAnimated(500, False)
Pane2.SetVisibleAnimated(500, True)
 
Upvote 0
Top