Android: Relative layout, chage X coord
<p>I have an Activity with relative layout on whole screen. In left top corner I have button. And on button click I want move layout from 0 X coord to 100 X coord. I tried something like this in onclik method:</p>

<pre><code>            RelativeLayout.LayoutParams param = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
            param.leftMargin = 100;
            meRelativeLayout.setLayoutParams(param);
</code></pre>

<p>But this thing just made my relative layout width smaller, its change left margine and thats it, but I dont want to change layout width, just wnat to change X coord, is there any way to do that ?</p>
