title: Admob in the bottom of RecyclerView and NestedScrollView
body: <p>I have RecyclerView with NestedScrollView and Toolbar. I want to place adview banner in the bottom so when a user is scrolling the banner is always visible. I don't know how to separate these views because nestedscrollview is not working when I changed it to LinearLayout. My code looks like this:</p>
  
  <pre><code>&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=".BenefitsActivity"&gt;
  
      &lt;com.google.android.material.appbar.AppBarLayout
          android:id="@+id/appBarLayout2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;androidx.appcompat.widget.Toolbar
              android:id="@+id/toolbar_benefits"
              app:layout_scrollFlags="scroll|enterAlways"
              android:layout_width="match_parent"
              android:background="#109689"
              app:title="@string/wlasciwosci"
              android:layout_height="?attr/actionBarSize"&gt;
  
          &lt;/androidx.appcompat.widget.Toolbar&gt;
  
      &lt;/com.google.android.material.appbar.AppBarLayout&gt;
  
      &lt;androidx.core.widget.NestedScrollView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fillViewport="true"
          android:isScrollContainer="true"
          android:measureAllChildren="true"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
          &lt;androidx.recyclerview.widget.RecyclerView
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:paddingBottom="50dp"
              android:clipToPadding="false"
              android:background="@color/grey_background"
              android:id="@+id/benefits_recycler"/&gt;
  
      &lt;/androidx.core.widget.NestedScrollView&gt;
  
      &lt;com.google.android.gms.ads.AdView
          xmlns:ads="http://schemas.android.com/apk/res-auto"
          android:id="@+id/adView2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:layout_gravity="bottom"
          ads:layout_constraintBottom_toBottomOf="parent"
          ads:adSize="BANNER"
          ads:adUnitId="ca-app-pub-3940256099942544/6300978111"&gt;
      &lt;/com.google.android.gms.ads.AdView&gt;
  &lt;/androidx.coordinatorlayout.widget.CoordinatorLayout&gt;
  </code></pre>