Wish New Improvement - Add CORNERS RADIUS in [B4X] SimpleMediaManager (SMM)

Lucas Siqueira

Active Member
Licensed User
Longtime User
@Erel This new feature in the rounded corners library for images is wonderful, but I still have one more suggestion.

Add the DefaultCornersRadius mode

With the default field, the command to load the image would be even simpler. Instead of having to create a map and load it with SetMediaWithExtra, we could use the simple SetMedia command.

- v1.19 - New DefaultCornersRadius mode. Sets the images corners radius.




Adjustments I made: SimpleMediaManager.Bas
B4X:
Sub Class_Globals
...
Public DefaultCornersRadius As Int = 0
...
End Sub
1751543309677.png



Adjustments I made: SMMViews.Bas
B4X:
Public Sub AddMedia(RequestSet As SMMediaRequestSet, MEDIA As SMMedia, Request As SMMediaRequest)
    ...
    Select ViewType
        Case VIEW_TYPE_B4XIMAGEVIEW
        ...
        x.CornersRadius = Request.Extra.GetDefault(mManager.REQUEST_CORNERS_RADIUS, mManager.DefaultCornersRadius)   
        ...
End Sub
1751543375660.png
 

Attachments

  • SimpleMediaManager.b4xlib
    24.6 KB · Views: 30
Top