Android - setting X,Y of image programmatically
<p>I have two ImageViews inside an AbsoluteLayout. </p>

<pre><code>&lt;AbsoluteLayout android:id="@+id/AbsoluteLayout01" 
android:layout_width="fill_parent" android:background="@drawable/whitebackground" 
android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"&gt;

&lt;ImageView android:id="@+id/floorPlanBackgroundImage"
    android:src="@drawable/ic_tab_lights_gray"
    android:scaleType="center" 
    android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;

&lt;ImageView android:id="@+id/fpLight"
    android:src="@drawable/ic_tab_lights_gray"
    android:scaleType="center" android:layout_x="50px" android:layout_y="50px" 
    android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;


&lt;/AbsoluteLayout&gt;
</code></pre>

<p>the floorPlanBackgroundImage is dynamically set from an image that is 800x600 in size. The can scroll around it. </p>

<p>My second image, fpLight represents a light in a room. It's a small 20x20 image. What I need to do is change the layout_x &amp; layout_y properties in code, but I don't see a way to set that in the ImageView.</p>

<p>I'd expected something like this...</p>

<p>fpLight.setLayoutX("55px");</p>

<p>Is there a way?</p>
