如何只设置应用到全屏幕和横向模式? [英] How to Set Application to full screen and Landscape Mode only?
本文介绍了如何只设置应用到全屏幕和横向模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
在Android的全屏活动?
我开发一个Android的游戏,我需要知道如何应用程序设置为全屏以及如何设置应用程序只能横向模式。我应该怎么做呢?
I'm developing an Android Game and I need to know how to set the application to full screen and how to set the app to Landscape mode only. How should I do this?
推荐答案
在您的清单中设置以下主题您的活动,使之全屏。
In your manifest set the following theme to your activity to make it fullscreen.
android:theme="@android:style/Theme.Black.NoTitleBar"
和设置这使它固定为横向
And set this to make it fixed to landscape orientation
android:screenOrientation="landscape"
这篇关于如何只设置应用到全屏幕和横向模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文