在 Gluon 应用程序中设置方向

Setting Orientation in Gluon Application

我想通过仅将方向设置为纵向来防止使用 javaFX 编写的 Gluon 应用程序旋转

有人可以帮忙吗?

将此行添加到 activity 标签下的 AndroidManifest.xml:

     android:screenOrientation="portrait"