title: Android Lollipop Design Issue
body: <p>I have a <code>RelativeLayout</code> with height parameter <code>match_parent</code> and in this I have another <code>LinearLayout</code> with property <code>layout_alignParentBottom=true</code>.</p>
  
  <p>I am using this layout to show <code>MediaController</code> buttons.</p>
  
  <p>Below is what I am expecting to have in <code>MediaController</code></p>
  
  <p><img src="https://i.stack.imgur.com/R5ujb.png" alt="enter image description here"></p>
  
  <p>But below is what I am getting on <code>Lollipop 5.1</code> (I have just added hard coded bottom margin to the layout, which is not at all any solution as it will not work well on all devices.)</p>
  
  <p><img src="https://i.stack.imgur.com/8uhPu.png" alt="enter image description here"></p>
  
  <p><strong>The layout hides behind the bottom back button bar</strong>.</p>
  
  <p>What will be the best way to only provide the necessary margin from bottom according to height of bottom bar as this layout works fine in other Android versions and earlier Android phones with Hardware back buttons.</p>
  
  <blockquote>
    <p>My XML file looks like this</p>
  </blockquote>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.mypack.MyActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_above="@+id/bottomLinear"
          android:orientation="vertical" &gt;
  
          &lt;ImageView
              android:id="@+id/albumArt"
              android:layout_width="120dp"
              android:layout_height="120dp"
              android:layout_gravity="center"
              android:background="@drawable/default_cover" /&gt;
  
          &lt;TextView
              android:id="@+id/titleOfSong"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:maxLines="3"
              android:text="Title Of Song"
              android:textSize="18sp" /&gt;
  
          &lt;TextView
              android:id="@+id/albumOfSong"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:maxLines="3"
              android:text="Album Of Song"
              android:textSize="16sp" /&gt;
  
          &lt;TextView
              android:id="@+id/artistOfSong"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:maxLines="3"
              android:text="Artist Of Song"
              android:textSize="18sp" /&gt;
  
          &lt;TextView
              android:id="@+id/genreOfSong"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:maxLines="3"
              android:text="Genre Of Song"
              android:textSize="18sp" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/bottomLinear"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:orientation="horizontal" &gt;
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <blockquote>
    <p>App Theme</p>
  </blockquote>
  
  <pre><code>&lt;style name="AppBaseTheme" parent="Theme.AppCompat"&gt;&lt;/style&gt;
  &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
      &lt;item name="android:windowDisablePreview"&gt;true&lt;/item&gt;
      &lt;item name="android:windowAnimationStyle"&gt;@null&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>