I want to display a simple banner ad in RecyclerView
which loads a list of images. just a simple bottom banner ad.
This is my RecyclerViewXML
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.RecyclerView
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:id="@+id/list"
android:name="com.example.fragmentactivity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FAC873"
app:layoutManager="StaggeredGridLayoutManager"
tools:context="com.example.fragmentactivity"
tools:listitem="@layout/fragment_image" />
if I try to put to the recyclerView
inside RelativeLayout
or any other so i could include banner in the bottom, but then it wont display any images.
How can I display banner in that view?
I tried almost all the available solution to dynamically add the banner but nothing worked