在EditTexts旁边放置按钮行。每行应该是一个LinearLayout或RelativeLayout,并且您应该为每个行设置android:height =“wrap_content”。把你的按钮edittext对放入其中。
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="bottom" >
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_name_colonists"
android:id="@+id/colonistsButton"/>
android:inputType="number"
android:ems="12"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"/>