@Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        super.getItemOffsets(outRect, view, parent, state);

        if (parent.getChildAdapterPosition(view) == 0) {
            return;
        }

        outRect.top = mDivider.getIntrinsicHeight();
    }
Basic ItemDecoration which loads a drawable as a divider.
android/modules/module_filepicker/src/main/java/com/nononsenseapps/filepicker/DividerItemDecoration.java