UIを.xmlで作成しましたが、ボタンの方向を動的に指定したいと思います。例えば;
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/backbutton"
android:text="TEST123"
android:layout_x="120px"
android:layout_y="120px"
android:layout_width="100px"
android:layout_height="100px" />
</AbsoluteLayout>
それから、私の活動クラスは、そのように動的に何かを変更しました。
AbsoluteLayout al = new AbsoluteLayout(this);
Button t = new Button(this);
t.setHeight(300);
t.setWidth(300);
t.setText("TEST123");
// x y ???
setContentView(al);
高さと幅を変更しましたが、x方向とy方向を変更する方法が見つかりませんでした。