diff options
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
-rw-r--r-- | core/java/android/view/ViewConfiguration.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index 0e36ec2..993048f 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -31,6 +31,16 @@ public class ViewConfiguration { private static final int SCROLL_BAR_SIZE = 10; /** + * Duration of the fade when scrollbars fade away in milliseconds + */ + private static final int SCROLL_BAR_FADE_DURATION = 250; + + /** + * Default delay before the scrollbars fade in milliseconds + */ + private static final int SCROLL_BAR_DEFAULT_DELAY = 300; + + /** * Defines the length of the fading edges in pixels */ private static final int FADING_EDGE_LENGTH = 12; @@ -89,7 +99,7 @@ public class ViewConfiguration { /** * Distance a touch can wander before we think the user is scrolling in pixels */ - private static final int TOUCH_SLOP = 25; + private static final int TOUCH_SLOP = 16; /** * Distance between the first touch and second touch to still be considered a double tap @@ -221,6 +231,20 @@ public class ViewConfiguration { } /** + * @return Duration of the fade when scrollbars fade away in milliseconds + */ + public static int getScrollBarFadeDuration() { + return SCROLL_BAR_FADE_DURATION; + } + + /** + * @return Default delay before the scrollbars fade in milliseconds + */ + public static int getScrollDefaultDelay() { + return SCROLL_BAR_DEFAULT_DELAY; + } + + /** * @return the length of the fading edges in pixels * * @deprecated Use {@link #getScaledFadingEdgeLength()} instead. |