在button控件里加android:layout_gravity="center_horizontal" 另外在LinearLayout里加上orientation=“vertical”不然会没有效果