开发者

Different views for horizontal and vertical when phone is rotated

How I can i set different views for horizontal and vertical di开发者_如何学编程splays when phone is rotated?


You can describe different layouts for portrait and landscape orientation. You should place layout for portrait mode into res/layout-port, and for landscape into res/layout-land

Read more at http://developer.android.com/guide/topics/resources/providing-resources.html, Providing Alternative Resources section


If you are developing the Application for your own then use wrap_content and fill_parent size in height and width. Becouse if you are given any static value then it will effect on the Layout of your phone size. as there are different sizes of phone available for android in the Market. Thanks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜