,可以设置一个活动的方向在清单文件
但它也可以从code做呢?如果是的话,怎么办?
谢谢!
解决方案 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
it is possible to set the orientation of an activity in the manifest file.
but is it also possible to do it from code? if so, how?
thanks!
解决方案setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);