В моем горизонтальном LinearLayout у меня есть TextEdit и ImageButton.ImageButton так же высоко, как TextEdit.
Я бы хотел, чтобы ImageButton был точно такой же ширины, как и его длина.
В данный момент выглядит как ширина кнопки ImageButton, когда нет масштабирования (ширина ImageButton [px] = немасштабируемая ширина рисования [px]):
![example](https://i.stack.imgur.com/jCyIu.png)
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<EditText
android:id="@+id/txtName"
android:layout_width="1dp"
android:layout_height="wrap_content"
android:layout_weight="1" />
<ImageButton
android:id="@+id/btSet"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:scaleType="fitEnd"
android:src="@drawable/pin2" />
</LinearLayout>
Как это должно выглядеть:
![objective](https://i.stack.imgur.com/SLHQ1.png)