I have a single button in a linear layout. I want the button to take up half the width of its parent. Is there a way to do this in the layout xml.
None of these solutions worked for me on Android L. I had to do wrap_content as below: