shaodongPan

Results 3 comments of shaodongPan

应该是NestedScrollView 的onMeasure方法会测量出recyclerView已有item的高度和,onBindViewHolder会从第一个item调用到最后一个item,在baseQuickAdapter 的onBindViewHolder中会判断是否要加载更多,因为最后一个item是已经被加载了,所以LoadMoreListener直接调用,然后就是循环套娃。

NestedScrollView 虽然会解决recyclerView高度显示问题 但是会导致item的复用失效。

> Region.Op.XOR被Region.Op.DIFFERENCE代替 > 所以在大于28的高版本 canvas.clipPath(mPath0, Region.Op.XOR)被 canvas.clipOutPath(mPath0)取代, canvas.clipPath(mPath1, Region.Op.INTERSECT)被canvas.clipPath(mPath1)取代 > 可以看源码 canvas.clipOutPath正是调用了clipPath(path, Region.Op.DIFFERENCE),而canvas.clipPath调用了canvas.clipPath(path, Region.Op.INTERSECT) > 类似于这样 > if(Build.VERSION.SDK_INT >= 28){ > canvas.clipOutPath(mPath0); > canvas.clipPath(mPath1); > else { > canvas.clipPath(mPath0, Region.Op.XOR);...