开发者

screen rotation in android

开发者 https://www.devze.com 2023-04-07 13:19 出处:网络
I want to use screen rotation in android device. But I don\'t want to rotate whole a开发者_运维技巧ctivity.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消