BarryW Active Member Licensed User Longtime User Feb 20, 2022 #1 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)
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)
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Feb 20, 2022 #2 I don't believe there is such a thing as a round background all views are rectangular. Try setting the background to transparent. Upvote 0
I don't believe there is such a thing as a round background all views are rectangular. Try setting the background to transparent.
TILogistic Expert Licensed User Longtime User Feb 20, 2022 #3 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) Upvote 1
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)
BarryW Active Member Licensed User Longtime User Feb 20, 2022 #4 Omar Parra A. said: 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) View attachment 125816 Click to expand... Images where stretch, but for me this is fine. Thanks Upvote 0
Omar Parra A. said: 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) View attachment 125816 Click to expand... Images where stretch, but for me this is fine. Thanks