Image location is different in Android Studio and device

  • Replies:1
Bup Broker
  • Forum posts: 1

Feb 15, 2016, 8:42:26 PM via Website

Hi,
i added an image in Android studio to my view. The image is about 1cm from the bottom in the xml view in Android studio.

When i load the program into my phone then half of the image is outside of the screen area.

I have set the view device to Nexus 5 (5inch) and my phone is Galaxy S4 (also 5inch). So there should be no difference there.

What could be causing this?

Thanks in advance!

Reply
Vladimir S.
  • Forum posts: 266

Feb 15, 2016, 9:56:29 PM via Website

  1. The screen sizes is not equal: Nexus has 4.95" with 445 dpi, and S4 has 4.99 with 441 dpi.
  2. View's placement depends of Android API level and selected theme:
    image

Reply