Android 4 bars size(Galaxy Nexus)

rafael picture rafael · Jun 20, 2012 · Viewed 8.2k times · Source

What are the sizes of Status Bar, Navigation Bar and Title Bar in pixels in galaxy nexus?

I think its because of them that my background image(720x1280 px) is getting with height stretched.

My layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/splash" >

Answer

gian1200 picture gian1200 · Jun 20, 2012

Is this what you are looking for? http://developer.android.com/design/style/metrics-grids.html

Navigation Bar and Action Bar have a height (or width) of 48dp.

If you want to remove everything (except the buttons), you can add this in the declaration of your activity in the manifest

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"