Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Interface rotation

Coluld you help me rotate interface?

I am trying wrote myself sublayout method, but it does not help(

 

public final class LoadingScreen extends MainScreen{

static float scaleKoof;

protected void sublayout(int width, int height) {

 

//What i mast wrote here to rotate my interface?

 

super.sublayout(width, height);
add(new LabelField("123"));
}

public LoadingScreen()
{

add(new LabelField("Hello World"));

}

}

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Interface rotation

Hi @ZevsVU

 

What do you mean by "rotate interface"?

 

Switch fields locations which laid out in a circle? Rotate an image around a certain point?

 

E.

Contributor
Posts: 20
Registered: ‎05-17-2012
My Device: have no device
My Carrier: KievStar

Re: Interface rotation

I need rotate existed UI elements.

Developer
Posts: 16,932
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Interface rotation

a labelfield cannot be rotated. if you turn the device, it is automatically rotated to be horizontally aligned again.

you can check the orientation at the start of the method to have a custom layout.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Interface rotation