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

Native Development

Reply
BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Want to know the current Screen Size?

Here's something I threw together last night because some people were frustrated trying to figure out the size of their screen at any given time.  Hopefully someone finds it helpful.  I am experimenting with using it to setup absolute layouts on different devices & orientations where the other layout engines fail me.

 

https://github.com/seanmcveigh/ScreenSize

 

Cheers,

Sean

Retired
Posts: 54
Registered: ‎06-26-2012
My Device: BlackBerry Bold 9900
My Carrier: Bell
Developer
Posts: 16,986
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Want to know the current Screen Size?

[ Edited ]

Looks useful, thanks Sean!
I did something similar, but it was more of a quick hack without the signal niceties.

 

If you could now please create something that gives me the size of a font...

----------------------------------------------------------
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