Android Question SimpleMediaManager Round Image and Round Background

BarryW

Active Member
Licensed User
Longtime User
How to set round background for SimpleMediaManager

I'm using this code, only the image is round not the background

B4X: Copy
Dim extra As Map
extra.Initialize
extra.Put(MediaManager.REQUEST_ROUNDIMAGE, True)
extra.Put(MediaManager.REQUEST_BACKGROUND, XUI.Color_LightGray)
    
MediaManager.SetMediaFromFile(Panel, File.DirAssets, "sample.png", "image/*", extra)
 
B4X: Copy
    Extra.Put(MediaManager.REQUEST_FADE_ANIMATION_DURATION, 0)
    Extra.Put(MediaManager.REQUEST_BACKGROUND, xui.Color_Transparent)
    Extra.Put(MediaManager.REQUEST_RESIZE_MODE, "FILL")
    Extra.Put(MediaManager.REQUEST_ROUNDIMAGE, True)
1645357669609.png
 
Upvote 1
Back
Top