title: Android Space evenly horizontally
body: <p>I am trying to create a "toolbar control" in Android.<br>
  I want to add let's say 4 buttons that are evenly spaced horizontally.<br>
  First thing that came into my mind was to create a horizontal linear layout and add the buttons with 0 width and equal weight. Then the buttons will be centered in each slice of 1/4 width. This is not what I want.<br>
  I want the first and the last button to stick to the margin and the rest of them to be equally aligned in the remaining space.<br>
  Like in this image:</p>
  
  <p><img src="https://i.stack.imgur.com/tE2tv.jpg" alt="space evenly android controls">
  .<br>
  The buttons are the blue squares. The container is the red rectangle. It should fill its parent.</p>