如题所述
有两种方法:
有LinearLayout中设置:android:gravity="center_horizontal"
在ImageButton中设置:android:layout_gravity="center_horizontal"