I am trying to detect when the panel is rotated 180º but it does not detect it
B4X:
Sub Button2_Click
Panel1.Rotation = Panel1.Rotation + 90
Log("New angle: " & Panel1.Rotation)
CurrentRotation(Panel1.Rotation)
End Sub
Sub CurrentRotation(Angulo As Int)
Select Angulo
Case 0
Log("Angle: " & Panel1.Rotation)
Case 90
Log("Angle: " & Panel1.Rotation)
Case 180, -180 '<--- NO DETECTED
Log("Angle: " & Panel1.Rotation)
Case 270, -90
Log("Angle: " & Panel1.Rotation)
End Select
End Sub