package ml.puredark.hviewer.ui.customs; import android.content.Context; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; /** * Created by PureDark on 2016/10/29. */ public class WrappedGridLayoutManager extends GridLayoutManager { public WrappedGridLayoutManager(Context context, int spanCount) { super(context, spanCount); } @Override public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { try { super.onLayoutChildren(recycler, state); } catch (IndexOutOfBoundsException e) { Log.e("probe", "meet a IOOBE in RecyclerView"); } } }