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

TILogistic

Expert
Licensed User
Longtime User
B4X:
    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
Top