Making EditText and Button same height in Android

I have an EditText and a Button in my LinearLayout and I want to align them closely together so they see seem to belong together (edittext + micButton for speech input).

Now they don't have the same height and they aren't really aligned well (Button seems to be a little lower than the EditText). I know I can apply a negative margin like -5dp to make them come closer together, but is there perhaps a better way to do this?

Set them in a specific container/layout so that they will automatically have the same height and no margin between them?

8
задан Morgan Koh 29 January 2019 в 05:33
поделиться