androidsizescreenandroid-4.0-ice-cream-sandwichgalaxy-nexus

Android 4 bars size(Galaxy Nexus)


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

Solution

  • 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"