I want to use screen rotation in android device. But I don't want to rotate whole a开发者_运维技巧ctivity. How is this possible to rotate only some of views in a activity
Like there are two button and one ImageView. I want to rotate only ImageView on screen orientation change.
Plz suggest the way.
Thanks.
Create another xml file with same name and put it in new folder inside res/ folder. Name that new folder layout-land. and change in your xml file according to your requirements. It will automatically change the layout file when the orientation will be changed.
精彩评论