This should fix issue #40
Due to a change that results in onLayoutChild being called before onTouchEvent there will be a NullPointerException when compiling for SDK 27. In this case the mViewDragHelper needs to be created before calling processTouchEvent
This should fix issue #40 Due to a change that results in
onLayoutChild
being called beforeonTouchEvent
there will be a NullPointerException when compiling for SDK 27. In this case themViewDragHelper
needs to be created before callingprocessTouchEvent