欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

about android screen

程序员文章站 2022-05-23 14:18:41
...

竖屏: 

android:screenOrientation="portrait"

横屏:

android:screenOrientation="landscape"

全屏:

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
			  WindowManager.LayoutParams.FLAG_FULLSCREEN);
requestWindowFeature(Window.FEATURE_NO_TITLE);

以下是Android SDK 截图:

about android screen


转载于:https://my.oschina.net/u/127911/blog/17459