Android Question SMM Background Color Transparent

I Use SMM (SimpleMediaManager)
But This Problem:

Screenshot_20221019-183547.jpg


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")


1666207411101.png
1666207451549.png
 
Upvote 0
?
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")


View attachment 135024 View attachment 135025
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
Top