title: Hide toolbar layout lines
body: <p>I have a UI design to create where the toolbar is immersed within the recyclerview.
  I have created the design but the lines of the layout are still visible on device whereas it appears to be right in the emulator. How do I merge the layout line in recyclerview.</p>
  
  <p>Below is a screenshot from emulator</p>
  
  <p><a href="https://i.stack.imgur.com/7jSUp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7jSUp.png" alt="enter image description here"></a></p>
  
  <p>and below is a screenshot from my device
  <a href="https://i.stack.imgur.com/YSpef.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YSpef.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;com.google.android.material.appbar.AppBarLayout
          android:layout_width="match_parent"
          android:background="@android:color/transparent"
          android:layout_height="wrap_content"&gt;
  
          &lt;androidx.appcompat.widget.Toolbar
              android:id="@+id/toolbar"
              android:elevation="0dp"
              android:background="@android:color/transparent"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:layout_weight="100"
              app:layout_scrollFlags="scroll|enterAlways"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:weightSum="100"
                  android:background="@android:color/transparent"
                  android:layout_height="match_parent"&gt;
  
                  &lt;TextView
                      android:id="@+id/toolbar_title"
                      android:layout_width="0dp"
                      android:gravity="center"
                      android:layout_weight="80"
                      android:layout_height="match_parent"
                      android:text="@string/app_name"
                      android:textColor="@android:color/black"
                      android:textSize="25sp"
                      android:textStyle="bold" /&gt;
  
                  &lt;ImageView
                      android:layout_width="0dp"
                      android:layout_height="60dp"
  
                      android:layout_weight="20"
                      android:layout_gravity="right"
                      android:src="@drawable/ic_add_black_24dp" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/androidx.appcompat.widget.Toolbar&gt;
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/my_recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="20dp"
          android:background="@android:color/transparent"
          android:scrollbars="vertical"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>