question: private void adjustForTopFadingEdge ( View childInSelectedRow , int topSelectionPixel , int bottomSelectionPixel ) { if ( childInSelectedRow . getTop ( ) < topSelectionPixel ) { int spaceAbove = topSelectionPixel - childInSelectedRow . getTop ( ) ; int spaceBelow = bottomSelectionPixel - childInSelectedRow . getBottom ( ) ; int offset = Math . min ( spaceAbove , spaceBelow ) ; offsetChildrenTopAndBottom ( offset ) ; } }
target:  Move all views upwards so the selected row does not interesect the top fading edge (if necessary).