negier
negier
我也是这问题
.smoothScrollToPosition(int position);
这个有个问题,就是设置Adapter之后,不要马上调用这个方法.smoothScrollToPosition(int position);,否则可能会报错。
哪怕是设置View.Visible,GONE,效果也是同上的,RecyclerView的内容没有立即显示,需要手动拖动下才会显示出来。
I find you use fixed ItemHeight to calculate AllHeight, and you use ``` View view = recyclerView.getChildAt(0); linearLayoutManager.getDecoratedTop(view); ``` But I find some code in internet, may be should be...