I found this article that "claims" to be able to get a view's rounded corner radius... which would be useful to get the screen's rounded corner radius by means of root
Private Sub GetActivityWindowInsets As JavaObject
Dim ctxt As JavaObject
ctxt.InitializeContext
Return ctxt.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView", Null).RunMethod("getRootWindowInsets", Null)
End Sub
B4X:
For position = 0 To 3
Dim RoundedCorner As JavaObject = insets.RunMethod("getRoundedCorner", Array(position))
Log(RoundedCorner)
Next
Private Sub GetActivityWindowInsets As JavaObject
Dim ctxt As JavaObject
ctxt.InitializeContext
Return ctxt.RunMethodJO("getWindow", Null).RunMethodJO("getDecorView", Null).RunMethod("getRootWindowInsets", Null)
End Sub
B4X:
For position = 0 To 3
Dim RoundedCorner As JavaObject = insets.RunMethod("getRoundedCorner", Array(position))
Log(RoundedCorner)
Next