Backport of Roman Nurik's ScrollTricks sample for API9