Android Question SMM Background Color Transparent

I Use SMM (SimpleMediaManager)
But This Problem:



Before Download And Show Image This Problem Happened!!!! (After Load is Fine)
This Cods Not Work For Problem:
b4x:
SMM.DefaultFadeAnimationDuration = 0
SMM.DefaultBackgroundColor = Colors.Transparent
SMM.AddLocalMedia(SMM.KEY_DEFAULT_ERROR, xui.LoadBitmap(File.DirAssets, "logo_loading_circle.png"), "image/*")
SMM.DefaultErrorRequest.Extra.Put(SMM.REQUEST_BACKGROUND, xui.Color_Transparent)
SMM.AddLocalMedia(SMM.KEY_DEFAULT_LOADING, xui.LoadBitmap(File.DirAssets, "logo_loading_circle.png"), "image/*")

B4xPanelLoadImage.Color = Colors.Transparent

Dim extra As Map = CreateMap(SMM.REQUEST_ROUNDIMAGE: True)
SMM.SetMediaWithExtra(B4xPanelLoadImage,"link","", extra)
 
Solution
i found it YESSSSSSSSSSS!
Just i forget point!
B4X:
SMM.DefaultErrorRequest.Extra.Put(SMM.REQUEST_BACKGROUND, xui.Color_Transparent)

DefaultErrorRequest?
DefaultLoadingRequest

TILogistic

Expert
Licensed User
Longtime User
?
Test:
B4X:
    MediaManager.DefaultResizeMode = "FILL"
    MediaManager.DefaultBackgroundColor = xui.Color_White
    
    MediaManager.AddLocalMedia(MediaManager.KEY_DEFAULT_ERROR, xui.LoadBitmap(File.DirAssets, "error.png"), "image/*")
    MediaManager.DefaultErrorRequest.Extra.Put(MediaManager.REQUEST_BACKGROUND, xui.Color_White)
    MediaManager.AddLocalMedia(MediaManager.KEY_DEFAULT_LOADING, File.ReadBytes(File.DirAssets, "loading.gif"), "image/gif")


 
Upvote 0
Sorry Not Work!
 
Upvote 0
i found it YESSSSSSSSSSS!
Just i forget point!
B4X:
SMM.DefaultErrorRequest.Extra.Put(SMM.REQUEST_BACKGROUND, xui.Color_Transparent)

DefaultErrorRequest?
DefaultLoadingRequest
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…