request for some scripty bits for screen size compatibility..
request for some scripty bits for screen size compatibility..
I suppose you could put them under the Android object.
For screen size when transparent with content overlap:
.getStatusBarHeight() .getNavBarHeight()
For misc layout junk:
.getActionBarHeight() .getDensity()
the reason.. I tested some of my scripts (built for 720×1280) on a phone that was 480×800 and both item.setPosition() and item.setSize() go wonky..
https://play.google.com/store/apps/details?id=lt.andro.screensize for other possibilities..
]]>
< ![CDATA[
Ren Shore thanks for the link, installed the app and it gives more-detailed info than the other app i was using
]]>
< ![CDATA[
No problem Curtis Sylvester Jr.
]]>
< ![CDATA[
Thanks for the link, this is interesting because honestly I don’t know how the navbar height is retrieved. AFAIK this cannot be retrieved through a simple Android API, so probably this is guessed by deduction.
]]>
< ![CDATA[
Nav bar = Screen height – action bar – space available to the app?
]]>
< ![CDATA[
That’s a bit less easy unfortunately 🙁
]]>