Note that there are some explanatory texts on larger screens.

plurals
  1. PORelative layout, mispositioning of images on on different phones
    primarykey
    data
    text
    <p>I am developing an android project of dragging and dropping images, using Relative Layout.</p> <p>The problem here is, the images are sitting in position as expected when I test it on my Galaxy Grand phone, but if I test the same project on my Galaxy Nexus, the images appears to be mispositioned on the screen. Please check out the screen shots below: 1)galaxy nexus<br> 2)galaxy grand screen shots and help me out. </p> <p>Here's my XML code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#3B5998" &gt; &lt;Chronometer android:id="@+id/chronometer" android:layout_width="0dp" android:layout_height="0dp" android:textSize="20sp" android:textStyle="bold" android:typeface="sans" android:visibility="gone" /&gt; &lt;ImageView android:id="@+id/imagebackgroundofearth" android:layout_width="100dp" android:layout_centerHorizontal="true" android:layout_marginTop="15dp" android:layout_height="100dp" android:src="@drawable/imagered" /&gt; &lt;ImageView android:id="@+id/imageviewunderleft" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentBottom="true" android:layout_marginBottom="150dp" android:layout_marginLeft="30dp" android:src="@drawable/imagered" /&gt; &lt;ImageView android:id="@+id/imageviewunderright" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignParentBottom="true" android:layout_marginBottom="150dp" android:layout_marginLeft="190dp" android:src="@drawable/imageorange" /&gt; &lt;ImageView android:id="@+id/imageviewabove" android:layout_width="100sp" android:layout_height="100sp" android:layout_marginTop="15dp" android:layout_marginLeft="110dp" android:src="@drawable/earth" /&gt; &lt;Button android:id="@+id/reload" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="30dp" android:layout_marginLeft="100dp" android:layout_marginRight="100dp" android:text="Reload" /&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload