@@ -0,0 +1,879 @@
+package com.sinyuk.yuk.ui.feeds;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Rect;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.View;%0A%0Aimport com.sinyuk.yuk.utils.ScreenUtils;%0A%0A/**%0A * Created by Sinyuk on 16/8/17.%0A */%0Apublic class FeedsItemDecoration extends RecyclerView.ItemDecoration %7B%0A%0A%0A    private final int marginTop;%0A    private final int gap;%0A%0A    public FeedsItemDecoration(Context context) %7B%0A        marginTop = ScreenUtils.dpToPxInt(context, 8);%0A        gap = ScreenUtils.dpToPxInt(context, 12);%0A    %7D%0A%0A    @Override%0A    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) %7B%0A        int position = parent.getChildAdapterPosition(view); // item position%0A        if (position == 0) %7B%0A            outRect.top = marginTop;%0A        %7D else %7B%0A            outRect.top = gap;%0A%0A        %7D%0A    %7D%0A%7D%0A

Create feed item decorator