title: Bottom Space on layouts Android
body: <p>I have a parent constraint layout and i am getting bottom Space on each and <a href="https://i.stack.imgur.com/lR5ow.png" rel="nofollow noreferrer">Check Image U can see space at bottom even layout constraints are attach to bottom of parent</a> every layout. However layout I have developed before are all working fine. Below is XML for one of my layouts.<a href="https://i.stack.imgur.com/yWq9o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yWq9o.png" alt="Image"></a></p>
  
  <p>You can see I have attached Constraints to bottom of parent but still I am getting this issue.</p>
  
  <p>Please notice I have changed it to linear as well still the result is same. One strange thing is on Emulator its working fine.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:bind="http://schemas.android.com/tools"&gt;
  
      &lt;data&gt;
  
  
          &lt;import type="android.view.View" /&gt;
  
          &lt;variable
              name="handler"
              type="com.schoolber.handler.ChatEventhandlers" /&gt;
      &lt;/data&gt;
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/white"
          &gt;
  
          &lt;include
              android:id="@+id/toolbar_tag"
              layout="@layout/chat_main_toolbar_layout"
              android:layout_width="0dp"
              android:layout_height="@dimen/action_bar_height"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent"
              bind:handler="@{handler}" /&gt;
  
          &lt;!--        &lt;androidx.appcompat.widget.Toolbar--&gt;
          &lt;!--            android:id="@+id/toolbar"--&gt;
          &lt;!--            android:layout_width="0dp"--&gt;
          &lt;!--            android:layout_height="@dimen/action_bar_height"--&gt;
          &lt;!--            app:layout_constraintStart_toStartOf="parent"--&gt;
          &lt;!--            app:layout_constraintEnd_toEndOf="parent"--&gt;
          &lt;!--            app:layout_constraintTop_toTopOf="parent"--&gt;
          &lt;!--            /&gt;--&gt;
          &lt;View
              android:id="@+id/greyPortionView"
              android:layout_width="0dp"
              android:layout_height="1dp"
              android:background="@color/white_four"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/toolbar_tag" /&gt;
  
          &lt;androidx.recyclerview.widget.RecyclerView
              android:id="@+id/chatInboxList"
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:layout_marginTop="1dp"
              android:background="@null"
              app:layout_constraintBottom_toTopOf="@+id/greyPortionViewSecond"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/greyPortionView" /&gt;
  
          &lt;TextView
              android:id="@+id/noRecentTV"
              android:layout_width="0dp"
              android:layout_height="48dp"
              android:textSize="10sp"
              android:gravity="center_vertical"
              android:paddingStart="32dp"
              android:background="@color/white_seven"
              app:layout_constraintTop_toBottomOf="@id/toolbar_tag"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              android:textColor="@color/brownish_grey"
              android:letterSpacing="0.03"
              android:lineSpacingExtra="3sp"
              android:text="No Recent Chat Found"
              /&gt;
  
  
          &lt;ImageView
              android:id="@+id/add_chat_img"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              app:srcCompat="@drawable/ic_add_icon"
              android:layout_margin="16dp"
              android:background="@drawable/circle_shadow"
              android:elevation="4dp"
              android:translationZ="4dp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintBottom_toTopOf="@+id/greyPortionViewSecond"
              /&gt;
  
  
  
          &lt;View
              android:id="@+id/greyPortionViewSecond"
              android:layout_width="0dp"
              android:layout_height="1dp"
              android:background="@color/white_four"
              android:layout_marginBottom="16dp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintBottom_toTopOf="@+id/fab_messgae" /&gt;
  
  
          &lt;ImageView
              android:id="@+id/fab_messgae"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:onClick="@{() -&gt; handler.searchUser()}"
              android:scaleType="fitXY"
              app:layout_constraintBottom_toTopOf="@+id/ic_chat"
              app:backgroundTint="@android:color/transparent"
              app:layout_constraintStart_toEndOf="@+id/ic_chat"
              app:layout_constraintEnd_toStartOf="@+id/ic_chat"
              app:srcCompat="@drawable/ic_menuchat_icon" /&gt;
  
          &lt;TextView
              android:id="@+id/ic_chat"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textSize="10sp"
              android:layout_marginBottom="16dp"
              android:textColor="@color/aqua_marine"
              android:letterSpacing="0.03"
              android:lineSpacingExtra="-4sp"
              android:text="@string/chat"
              app:layout_constraintEnd_toStartOf="@id/ic_profile_tv"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              android:gravity="center_horizontal"
              /&gt;
  
  
          &lt;ImageView
              android:id="@+id/fab_profile"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:onClick="@{() -&gt; handler.searchUser()}"
              android:scaleType="fitXY"
              app:layout_constraintBottom_toTopOf="@+id/ic_profile_tv"
              app:backgroundTint="@android:color/transparent"
              app:layout_constraintStart_toEndOf="@+id/ic_profile_tv"
              app:layout_constraintEnd_toStartOf="@+id/ic_profile_tv"
              app:srcCompat="@drawable/ic_menucontacts_icon" /&gt;
  
          &lt;TextView
              android:id="@+id/ic_profile_tv"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textSize="10sp"
              android:layout_marginBottom="16dp"
              android:text="@string/contacts"
              android:textColor="#000000"
              android:letterSpacing="0.03"
              android:lineSpacingExtra="-4sp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintStart_toEndOf="@id/ic_chat"
              android:gravity="center_horizontal"
              /&gt;
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/layout&gt;
  </code></pre>