开发者

blackberry screen orientation change

开发者 https://www.devze.com 2023-04-07 17:22 出处:网络
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 m开发者_运维百科ode ..Check this BlackBerry UI guide:

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 m开发者_运维百科ode ..


Check this BlackBerry UI guide:
Specifying the orientation and direction of the screen


This set default portrait mode:

public void disableOrientationChange()
{

    int directions = Display.DIRECTION_NORTH;
    UiEngineInstance engineInstance = Ui.getUiEngineInstance();
    if (engineInstance != null)
    {
        engineInstance.setAcceptableDirections(directions);
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号