How to get a button’s height to match another element’s height?

Presumably the EditText and the Button are inside a RelativeLayout. Set the button’s layout attributes to alignTop and alignBottom of the EditText.

Leave a Comment