开发者

screen rotation in android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜