Fixed mItemCount in setAdapter()
Changed offsetChildrenTopAndBottom method to be public, so that we can scroll the grid when required.