Rotating a view in Android


Question

I have a button that I want to put on a 45 degree angle. For some reason I can't get this to work.

Can someone please provide the code to accomplish this?

1
65
11/28/2014 8:01:14 AM

API 11 added a setRotation() method to all views.

66
2/18/2014 8:43:46 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon