title: Layout 4 Buttons in Android
body: <p>I'm pretty new to Android-development. I'm currently working on an app, where i need to layout 4 buttons on an screen. Button 1 + 2 should be in the first row and 3 + 4 in the second row. I want each button to be the same height and width. And as there are multiple screen sizes out there, i want the buttons-width be 40% of the screen width.
  Is something like this possible to make just by layouting, or do i need to calculate everything in code?</p>
  
  <p>Note: I want to deploy the app to devices running Android 2.2 or higher.</p>
  
  <p>Here's a sample graphic.
  <img src="https://i.stack.imgur.com/Z4iJy.png" alt="enter image description here"></p>
  
  <p>EDIT: For all who are searching for the square stuff.. Here is the solution: <a href="http://android-layouts.com/category/tags/square" rel="nofollow noreferrer">http://android-layouts.com/category/tags/square</a></p>