你能解釋一下爲什麼請我改變重力它沒有改變。首先當我改變它的按鈕位置被改變,但現在我不能改變位置。
main.xml中
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/button1"
android:layout_width="92dp"
android:layout_height="0dp"
android:layout_gravity="right"
android:layout_weight="1"
android:text="@string/button1" />
</LinearLayout>
請出示XML。 – 2012-02-02 12:26:47
郵政一些代碼,它是幫助repley ... – NagarjunaReddy 2012-02-02 12:28:15
烏拉圭回合後的XML代碼... – himanshu 2012-02-02 12:28:44