The blue rectangles are invisible areas(made visible for debugging) i click and something happens. on the IDE, they are at right places.
But on the genymotion(same model) they are placed at a bit different positions - why? What could be the problem - screen denisty?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
android:id="@+id/main">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/background"
android:src="@drawable/page_2_bkg"
android:layout_alignParentTop="true" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/door_closed2"
android:src="@drawable/page2_door_closed" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/door_open2"
android:src="@drawable/page2_door_opened"
android:visibility="invisible" />
<ImageView
android:layout_width="80dp"
android:layout_height="300dp"
android:id="@+id/boy"
android:layout_marginLeft="160dp"
android:visibility="visible"
android:src="#ff2b16ff"
android:layout_marginBottom="50dp" />
<ImageView
android:layout_width="150dp"
android:layout_height="300dp"
android:id="@+id/doorBox"
android:visibility="visible"
android:layout_alignParentTop="true"
android:layout_alignRight="@+id/background"
android:layout_alignEnd="@+id/background"
android:layout_marginRight="118dp"
android:layout_marginEnd="118dp"
android:src="#ffff3240" />