I'm using the setRotate method and although it does seem to rotate the label, it doesn not rotate around the center but it seems it is rotating around one of the corners.
'reference upper left corner, default pivot middle of the view
Sub setPivot(v As View, X As Float, y As Float)
Dim j As JavaObject = v
j.RunMethod("setPivotX", Array As Object(X))
j.RunMethod("setPivotY", Array As Object(Y))
End Sub
Or
B4X:
Sub setPivotCenter(v As View)
Dim j As JavaObject = v
Dim X As Float = v.Width / 2
Dim y As Float = v.Height / 2
j.RunMethod("setPivotX", Array As Object(X))
j.RunMethod("setPivotY", Array As Object(Y))
End Sub
Subject: Set and get the 'padding' of a view. Sub: setPadding Description: Sets the padding'of a view. 'Sets the padding of a view 'v = view 'Left, Top, Right, Bottom padding values in pixels Sub setPadding(v As View, Left As Int, Top As Int, Right As Int, Bottom As Int) Dim jo = v As...
So far I've used the native Android commands to rotate the views according to the X, Y, and Z axes. The native commands let you change the X and Y coordinates of the Pivot point and get this. But to get a rotating cube it is not enough to be able to rotate on three axes but you have to be...