Easiest way to add landscape Orientation And code in android

一个人想着一个人 提交于 2019-12-22 10:46:36

问题


I am new in android and want to know how to add landscape mode in android can anyone tell me about the easiest way to do that. I'm looking for a way that is very simple.

If you have this kind of question check the answer below.

thanks....


回答1:


I have a simplest way to add a landscape mode (add landscape folder, landscape xml file and code) in android studio. You just have to click one or two times to do that.
when you are in xml file opened look at the right there is a preview panel that show your device click the button and click on switch to layout-land. It Automatically adds layout_land.xml file into your file structure AND also opens it in code & preview.
Check the image below...



来源:https://stackoverflow.com/questions/32665181/easiest-way-to-add-landscape-orientation-and-code-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!