B4XImageView added to the designer. Don't forget to add the library XUI Views.
An image file in the Files Manager pane of the IDE.
That's it.
Greetings.
Paul
How to set round background for SimpleMediaManager I'm using this code, only the image is round not the background Dim extra As Map extra.Initialize extra.Put(MediaManager.REQUEST_ROUNDIMAGE, True) extra.Put(MediaManager.REQUEST_BACKGROUND, XUI.Color_LightGray)...
Purpose is to create a panel that clips its child views to a circle or rounded rect. 1. Set the round corners with the visual designer. 2. Use this code: Public Sub SetCircleClip (pnl As B4XView) #if B4J Dim circle As JavaObject Dim radius As Double = Max(pnl.Width / 2, pnl.Height / 2)...
MediaManager.SetMediaWithExtra(pnl.GetView(x).GetView(0), $"https://picsum.photos/id/${data.IndexOfFirstImage + x}/200/300.jpg"$, "image/*", Extra)
Wait For (pnl.GetView(x).GetView(0)) SMM_MediaReady (Success As Boolean, Media As SMMedia)
If Success Then
pnl.GetView(x).GetView(0).GetView(0).Tag.As(B4XImageView).CornersRadius = 30dip
End If