Is there a way to add a simple header/footer to a RecyclerView?
Here you can see what I've got. The first Card touches the Toolbar
And here you can see what I want. 8dp Padding between the bottom and the Card.
Methods I tried so far:
I'm sure that there is a simple solution which I don't know so far.
Adding a top padding and setting clipToPadding
to false will do the trick.
Something like this:
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
android:paddingTop="8dp"
android:clipToPadding="false"
android:layout_width="match_parent"
android:layout_height="match_parent" />