我该如何将ImageButton居中在这个LinearLayout中?
我不想使用固定大小。
谢谢。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main"
>
图像按钮
<ImageButton android:id="@+id/btnBut"
android:background="@drawable/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
我不想使用固定大小。
谢谢。