<NME> RecyclerViewProvider.java
<BEF> package cgeo.geocaching.ui.recyclerview;

import android.app.Activity;
import android.support.annotation.IntegerRes;
import android.support.annotation.NonNull;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import butterknife.ButterKnife;
import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration;

public final class RecyclerViewProvider {

    private RecyclerViewProvider() {
        // utility class
    }

    public static RecyclerView provideRecyclerView(@NonNull final Activity context, @IntegerRes final int viewId, final boolean fixedSize) {
        final RecyclerView view = ButterKnife.findById(context, viewId);
        view.setHasFixedSize(fixedSize);
        view.addItemDecoration(new HorizontalDividerItemDecoration.Builder(context).build());
    private static void configureView(final Activity context, final RecyclerView view, final boolean fixedSize, final boolean showDivider) {
        view.setHasFixedSize(fixedSize);
        final LinearLayoutManager layoutManager = new LinearLayoutManager(context);
        view.setLayoutManager(layoutManager);
        if (showDivider) {
            view.addItemDecoration(new DividerItemDecoration(context, layoutManager.getOrientation()));
        }
        view.setItemAnimator(new DefaultItemAnimator());
    }

    public static void provideRecyclerView(@NonNull final Activity context, final RecyclerView view, final boolean fixedSize, final boolean showDivider) {
        configureView(context, view, fixedSize, showDivider);
    }
}

<MSG> fix android lint

<DFF> @@ -1,22 +1,23 @@
 package cgeo.geocaching.ui.recyclerview;
 
 import android.app.Activity;
-import android.support.annotation.IntegerRes;
+import android.support.annotation.IdRes;
 import android.support.annotation.NonNull;
 import android.support.v7.widget.DefaultItemAnimator;
 import android.support.v7.widget.LinearLayoutManager;
 import android.support.v7.widget.RecyclerView;
 
-import butterknife.ButterKnife;
 import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration;
 
+import butterknife.ButterKnife;
+
 public final class RecyclerViewProvider {
 
     private RecyclerViewProvider() {
         // utility class
     }
 
-    public static RecyclerView provideRecyclerView(@NonNull final Activity context, @IntegerRes final int viewId, final boolean fixedSize) {
+    public static RecyclerView provideRecyclerView(@NonNull final Activity context, @IdRes final int viewId, final boolean fixedSize) {
         final RecyclerView view = ButterKnife.findById(context, viewId);
         view.setHasFixedSize(fixedSize);
         view.addItemDecoration(new HorizontalDividerItemDecoration.Builder(context).build());

fix android lint