Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将使用选项卡的应用程序限制为纵向。我有 4 个选项卡,我为所有 4 个选项卡设置了“android:configChanges="orientation”,但是当我旋转手机时方向仍然会改变。看起来很简单。我错过了什么吗?
谢谢
经过进一步审查,只需在清单中添加以下内容:
安卓:screenOrientation="人像"