开发者

android setting activity orientation by code

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);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜