calculateDxToMakeVisible
Calculates the horizontal scroll amount necessary to make the given view fully visible inside the RecyclerView.
Return
The vertical scroll amount necessary to make the view visible with the given snap preference.
Parameters
view
The view which we want to make fully visible
snapPreference
The edge which the view should snap to when entering the visible area. One of SNAP_TO_START, SNAP_TO_END or SNAP_TO_END