我编写UI时,有一个图标,位于底部中间,如何使它位于底部最左面?
下面是程序:
<ImageButton android:id="@+id/Button4"
android:layout_gravity="center"
android:src="@drawable/home"
android:textColor="#000000"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_marginTop="300px"
android:layout_height="wrap_content"
请大神指点!
下面是程序:
<ImageButton android:id="@+id/Button4"
android:layout_gravity="center"
android:src="@drawable/home"
android:textColor="#000000"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_marginTop="300px"
android:layout_height="wrap_content"
请大神指点!
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginLeft="24dp"
android:layout_marginBottom="10dp" />
</RelativeLayout>
android:layout_alignParentLeft="true"
android:layout_marginLeft="24dp"
android:layout_marginBottom="10dp"
android:layout_gravity="center"这句改一下,改成android:layout_gravity="left"