Understanding Samsung Galaxy Tab screen density
One would say that if the Galaxy Tab screen resolution (in portrait mode) is 600px and the screen width is 3.55inch , the screen density would be 600/3.55 = 169 dpi . Knowing that and keeping in mind the way the device independent pixels (dp) is computed ( http://developer.android.com/guide/practices/screens_support.html ): px = dp * (dpi / 160); 600 = dp * (169 / 160); dip = 568 So drawing a horizontal line of 568dp (device independent pixels) width starting at position 0 must exactly match the width of the screen. But if you try this on device you will find that the screen width is 400dp . I