Closed nanchen2251 closed 7 years ago
只要一设置分割线就会出现顶部有个两倍间隔的距离。 mRecyclerView.addItemDecoration(new ItemDecoration() { @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, State state) { outRect.set(0,0,0,40); } });
只要一设置分割线就会出现顶部有个两倍间隔的距离。 mRecyclerView.addItemDecoration(new ItemDecoration() { @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, State state) { outRect.set(0,0,0,40); } });