Hi, I know it's a bit late but think this answer could be useful, for someone looking how to rotate views (as I was now)
The code above works like a charm, but we can take advantage of it a little more. I've seen that there are three methods relative to rotation:
- setRotationX : the view rotates around the horizontal axis, tilting the text backwards (creating the effect of Star Wars texts) or forwards
- setRotationY : the view rotates around the vertical axis, creating perspective
- setRotation : the view rotates around an axis perpendicular to the screen, without changing the dimensions of the view
Hope this helps.
Ivan