I am using ConstraintLayout in my application to make applications layout. I am trying to a create a screen wheren one EditText and Button
ConstraintLayout
EditText
Button
Chain
You can now use the chain feature in packed mode as describe in Eugene's answer.
chain
packed
Guideline
You can use a horizontal guideline at 50% position and add bottom and top (8dp) constraints to edittext and button: