Blackberry storm - update layout on tilt

Posted by sujithRavindran on Stack Overflow See other posts from Stack Overflow or by sujithRavindran
Published on 2010-03-08T10:31:45Z Indexed on 2010/05/07 3:08 UTC
Read the original article Hit count: 384

Hi,

have developed an app for BB storm while tilting the device the background image of the app screen does not matches with the screen size, i have tried with the sublayout method

public void sublayout(int width, int height)
{
    //update scrren layout based on orientation
    if(Display.getOrientation()== Display.ORIENTATION_LANDSCAPE)
    {
    invalidate();
    }
    else if(Display.getOrientation()== Display.ORIENTATION_PORTRAIT)
    {
     invalidate();
    }

    super.sublayout(width, height);
}

Still not successfull can any one help to sort out this tilt issue in BB storm

Thanks SujithRavindran Rapidvaluesolutions

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about blackberry-storm