Margin/padding in last Child in RecyclerView
I'm trying to add Padding/Margin Bottom in the last row and Padding/Margin Top in the first row. I can not do it in the item xml as it would affect all of my Childs. I have headers and childs in my RecyclerView Adapter so I can not use the android:padding="4dp" android:clipToPadding="false" I need to use it individually on the last first row of each header This issue is even easier to solve. You can apply necessary padding to the RecylerView itself and set clipToPadding to false, otherwise, the padding will chop off your scrolling area. Here is an example <android.support.v7.widget