From 5d9fb0e92f2ef2b25f3aa93c1f89838ccc68aa88 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Sat, 8 Oct 2016 17:43:48 -0700 Subject: Simplifying fast scroller logic > Using a separate view for drawing the popup. This allows us to use elevation property instead of drawing the shadow as bitmap. > During the thumb animation, invalidating the full track width, instead of invalidating the track and thumb separately. > The thumb path is calculated at 0,0 and drawn using canvas.translate(). This avoids recalculating the path on every scroll. Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6 --- res/values/dimens.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'res/values/dimens.xml') diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 12e902ac3..7f778d6d4 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -54,6 +54,7 @@ 5dp 9dp + 18dp 72dp -24dp 72dp -- cgit v1.2.3