Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI don't think the user can change the device density at runtime, although with the introduction of compatibility mode in 3.2 I'm not sure how that would affect it. As for your measurements, if you don't really need the size of the "status bar" and "title bar" but only really want the usable size for your views, then why don't you just do this in your run() method: `run() { sRootHeight = root.getHeight(); }` where `sRootHeight` is a static class variable so your other activities can reference it.
      singulars
    2. CO@Turbo, I actually got to have 2 rows of 3 buttons each. Based on space available, I calculate the height & width for the buttons considering the spaces between them. I have added 2 rows of 3 buttons each in XML, root.getHeight(); gives me the std sizes of buttons. If the screen is is portriat mode the height is more than width & vice-versa in Landscape mode. Based on the height available I got to set the height of the buttons. If in 3.2 the compatibility moe may be affected to some extend, then in further version, it might be available completely also. What do you say ??
      singulars
    3. COI haven't played with the compatibility mode so I'm not too familiar with it's affects. But using the root.post() method of getting your view height is pretty safe I think, since no matter what the screen size, you'll be able to calculate your needed space at runtime. If you are concerned about Compatibility mode [here is how you can disable it](http://developer.android.com/guide/practices/screen-compat-mode.html#Disable)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload