Avoid 'recalculate style' by conditionally change classes while scrolling

Change-Id: I71b42f9f974a1367700283ad55013e9e6a036827