I hope the attached screenshot make my issue clear, The the last item in the RecyclerView
list is getting overlapped by the AdView
.
Adding bottom padding & margin to the RecyclerView
, leaves a blank space at the bottom behind the AdView
, this is undesirable.
Is there any way to set over-scroll or offset to the scrolling ?
Any quick solutions/suggestion would be helpful, Thanks in advance.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<android.support.v7.widget.RecyclerView
android:id="@+id/rvProverbs"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:spanCount="4"
/>
<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_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="@string/ad_unit_id">
</com.google.android.gms.ads.AdView>
</RelativeLayout>