title: android linearlayout baseline align
body: <p>I have 3 imageviews but since they overlap i wont make them clickable, i want make buttons on top of each imageview(but smaller).</p>
  
  <p>I know in <code>RelativeLayout</code> there is easy way out using <code>align_baseline</code> but it is very important that i use <code>LinearLayout</code> for these images because they use <code>layout_weight</code></p>
  
  <p>And its important that button is connected with imageview, not just appearing on top of it</p>
  
  <p>And here is my code it might help</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
       ...
        &lt;LinearLayout
              android:layout_width="match_parent"        
              android:layout_height="match_parent" 
              android:layout_above="@+id/twitter"
              android:layout_alignParentLeft="true"
              android:orientation="vertical"
              android:weightSum="3"
              android:layout_marginBottom="25dp"
              android:layout_alignParentTop="true" &gt;
                  &lt;ImageView
               android:id="@+id/imgDis"
               android:layout_weight="1"
               android:layout_width="300dp"
               android:layout_height="120dp"
               android:layout_marginBottom="-20dp"
               android:background="@drawable/img1" /&gt;
  
                    &lt;ImageView
              android:id="@+id/imgCal"
               android:layout_weight="1"
              android:layout_width="300dp"
              android:layout_height="120dp"
              android:layout_gravity="right"
              android:layout_marginBottom="-25dp"
              android:background="@drawable/img2"
              android:paddingLeft="25dp" /&gt;
  
          &lt;ImageView
              android:id="@+id/imgDe"
               android:layout_weight="1"
              android:layout_width="300dp"
              android:layout_height="120dp"
  
              android:background="@drawable/img3" /&gt;
  
          &lt;/LinearLayout&gt;
          ...
   &lt;/RelativeLayout&gt;
  </code></pre>