title: Putting a button between and over two buttons linear layout
body: <p>I am working on a small fun project where I am building an one octave piano. I am trying to figure out how to add the black keys between and over the white keys. I am thinking I need to use a nested layout (maybe RelativeLayout) inside my horizontal LinearLayout.It should look something similar to the pic below.</p>
  
  <p><a href="https://i.stack.imgur.com/XAMFr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XAMFr.png" alt="enter image description here"></a> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:weightSum="100"&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="66"
          android:background="@color/colorPrimaryDark" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"
          android:weightSum="100"&gt;
  
          &lt;TextView
              android:id="@+id/leftRail"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="15"
              android:background="@color/colorPrimary" /&gt;
  
          &lt;Button
              android:id="@+id/c_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/d_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/e_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/f_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/g_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/a_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
          &lt;Button
              android:id="@+id/b_4"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="10" /&gt;
  
  
          &lt;TextView
              android:id="@+id/rightRail"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="15"
              android:background="@color/colorPrimary" /&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>