title: Android button layout within FrameLayout
body: <p>I have a FrameLayout that fills the screen and a SurfaceView within that, that also fills the screen. I then have 3 buttons of different widths. I want to arrange these buttons vertically on the right edge of the screen, evenly spaced so the top button is at the top of the screen, middle is in the middle and the bottom one is at the bottom - also, I want the buttons vertically centre aligned with each other.</p>
  
  <p>Pseudo layout:</p>
  
  <pre><code>&lt;FrameLayout layout_width="match_parent" layout_height="match_parent"&gt;
  
      &lt;SurfaceView layout_width="match_parent" layout_height="match_parent"&gt;&lt;/SurfaceView&gt;
  
      &lt;ToggleButton android:layout_width="45dp"&gt;&lt;/ToggleButton&gt;
      &lt;ToggleButton android:layout_width="67dp"&gt;&lt;/ToggleButton&gt;
      &lt;ToggleButton android:layout_width="100dp"&gt;&lt;/ToggleButton&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Any help is much appreciated and here's a ASCII picture of what I'm trying to achieve, hope it helps!</p>
  
  <pre><code>-------------------------------------------
  |                                 (  )    |
  |                                         |
  |                                         |
  |                                         |
  |                               (      )  |
  |                                         |
  |                                         |
  |                                         |
  |                             (          )|
  -------------------------------------------
  </code></pre>