问题
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