xmuSistone / VegaLayoutManager

√A customized LayoutManager - fade and shrink the head itemView when scrolling.
1.85k stars 232 forks source link

当recyclerView中item没超过屏幕时候滑动会闪屏 #4

Closed ldoublem closed 7 years ago

ldoublem commented 7 years ago

应该在computeMaxScroll()方法中,当得到最低部item.bottom-getHeight()的值maxScroll是否小于0,如果小于0就直接return掉,这样子就不允许滑动了。望采纳

xmuSistone commented 7 years ago

代码已上传,谢谢指正。