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

]]>
« (Previous Post)
(Next Post) »

5 Commentsto request for some scripty bits for screen size compatibility..

  1. Anonymous says:

    < ![CDATA[

    Ren Shore thanks for the link, installed the app and it gives more-detailed info than the other app i was using

    ]]>

  2. Anonymous says:

    < ![CDATA[

    No problem Curtis Sylvester Jr.

    ]]>

  3. Anonymous says:

    < ![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.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Nav bar = Screen height – action bar – space available to the app?

    ]]>

  5. Anonymous says:

    < ![CDATA[

    That’s a bit less easy unfortunately 🙁

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *