Hello,
I have a button in my application.... I want to change its position by programmatically...
I have created a button in xml as follows:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="50px"
android:layout_marginTop="10px"
>
</Button>
</LinearLayout>
suppose if i wants to set the position of button as 100px from Left (as layout_marginLeft="100px") then how do i do it programatically?
pls help me and take me out from this problem. Thanx - Paresh