Notifications are always displayed on the 25dp-high status bar at the top of the display, with the exception of sw600 devices (i.e. the smallest width in any orientation is 600dp, see this blog post for more information) on API levels 11 (Honeycomb) to 16 ( Jelly Bean pre-MR1). On these devices, at the bottom of the display is a โ48 dB combined system panelโ.
The easiest way to verify this is through qualified resources; those. put the layout assumption top-status-bar in layout/foo.xml , but then have the version of the lower system line in layout-sw600dp/foo.xml . Finally, since these large devices now use the top status bar with Android 4.2 (API 17), you will need to revert to the top status version in layout-sw600dp-v17/foo.xml .
If you just need a boolean that tells you whether the status bar is at the top, replace the layout in the example above with values and put <bool> in foo.xml , which is true, except in the case of values-sw600dp .
dsandler
source share