Điều này có vẻ đơn giản, nhưng tôi không thể tìm ra cách thực hiện. Tôi có một bố cục ngang với một EditText và hai ImageButtons. Tôi muốn ImageButtons có kích thước cố định và EditText chiếm không gian còn lại trong bố cục. Làm thế nào điều này có thể được thực hiện?
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</EditText>
<ImageButton
android:src="@drawable/img1"
android:layout_width="50dip"
android:layout_height="50dip">
</ImageButton>
<ImageButton
android:src="@drawable/img2"
android:layout_width="50dip"
android:layout_height="50dip">
</ImageButton>
</LinearLayout>