i want to set my application in Portrait mode as default . so how to implement it ? all screen of the application set default as Portrait mode ..

有帮助吗?

解决方案

其他提示

This set default portrait mode:

public void disableOrientationChange()
{

    int directions = Display.DIRECTION_NORTH;
    UiEngineInstance engineInstance = Ui.getUiEngineInstance();
    if (engineInstance != null)
    {
        engineInstance.setAcceptableDirections(directions);
    }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top