我希望我的 android 应用程序仅在纵向模式下运行?
我怎样才能做到这一点?
在 list 中,为您的所有 Activity 设置此项:
<activity android:name=".YourActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"/>
android:configChanges="orientation"
你告诉 Android 你将负责方向的变化。 android:screenOrientation="portrait"
您设置默认方向模式。 关于android - 我希望我的 android 应用程序仅在纵向模式下运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3723823/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) | Powered by Discuz! X3.4 |