Although this question is more than a year old, I thought that I would share what I did, someone might like it, or simply do not want to print and can copy / paste: D.
My solution was to add a bottom edge to the last element.
First, I determine that this is the last element:
@Override public void onBindViewHolder(final ItemViewHolder holder, int position) { .... Your other code ....
Then I have a method in the view node to set the bottom field.
class ItemViewHolder extends RecyclerView.ViewHolder { private View mRootView; private Context mContext; public ItemViewHolder(View itemView) { super(itemView); mRootView = itemView; mContext = itemView.getContext();
And for the completeness of this example, dimension
<resources> <dimen name="spot_list_footer_position_offset">-56dp</dimen> </resources>
Hope this is what you were looking for.
stephanmantel
source share