ItemTouchHelper.Callback 方法 onChildDraw 和 onChildDrawOver 有什么区别?

What is the difference between the ItemTouchHelper.Callback methods onChildDraw and onChildDrawOver?

这两种方法的文档是相同的:

扩展此 class 时是否应该覆盖任何一个、两个或一个特定的,并且您想编辑 children 的绘制方式?有什么区别?不同用例的/示例是什么?区别和这些方法的区别类似吗?

根据this

...Most of the time, you only need to override onChildDraw but due to limitations of platform prior to Honeycomb, you may need to implement onChildDrawOver as well...

所以这与您的目标 API 级别有关。我认为现在你应该几乎总是只实现 onChildDraw 除非你的应用程序也运行在 pre-Honeycomb 上。