JakeBullet70 Well-Known Member Licensed User Longtime User Mar 6, 2014 #1 I have an image loaded in a imageview control can I rotate it? I do not want any animation, just 90,180,270 thanks
I have an image loaded in a imageview control can I rotate it? I do not want any animation, just 90,180,270 thanks
Informatix Expert Licensed User Longtime User Mar 6, 2014 #2 JakeBullet70 said: I have an image loaded in a imageview control can I rotate it? I do not want any animation, just 90,180,270 thanks Click to expand... Example. Upvote 0
JakeBullet70 said: I have an image loaded in a imageview control can I rotate it? I do not want any animation, just 90,180,270 thanks Click to expand... Example.
klaus Expert Licensed User Longtime User Mar 6, 2014 #3 You could also use the JavaObject library to rotate the ImageView. Code: Copy 'Sets the rotation angle of the given view 'v = view 'Angle = rotation angle in degrees Sub setRotation(v As View, Angle As Float) Dim jo = v As JavaObject jo.RunMethod("setRotation", Array As Object(Angle)) End Sub I don't remember when this was addaed, in older Android versions, like 2.3, it wont run. Upvote 0
You could also use the JavaObject library to rotate the ImageView. Code: Copy 'Sets the rotation angle of the given view 'v = view 'Angle = rotation angle in degrees Sub setRotation(v As View, Angle As Float) Dim jo = v As JavaObject jo.RunMethod("setRotation", Array As Object(Angle)) End Sub I don't remember when this was addaed, in older Android versions, like 2.3, it wont run.
Informatix Expert Licensed User Longtime User Mar 6, 2014 #4 klaus said: I don't remember when this was addaed, in older Android versions, like 2.3, it wont run. Click to expand... Since API 11 (Honeycomb). Upvote 0
klaus said: I don't remember when this was addaed, in older Android versions, like 2.3, it wont run. Click to expand... Since API 11 (Honeycomb).