diff options
| author | Alan Viverette <alanv@google.com> | 2015-02-20 11:10:22 -0800 |
|---|---|---|
| committer | Alan Viverette <alanv@google.com> | 2015-02-20 11:10:22 -0800 |
| commit | 72710f11ecd3baf468bf649283453cb7aafe4d74 (patch) | |
| tree | 32eedce0cf1ee26c674902be10c5951910779aa4 /core/java/android/view/ViewConfiguration.java | |
| parent | c20f54aff64a5b29003968249906c9443208a845 (diff) | |
Use ObjectAnimator for fading scrollbars, set initial duration to 1500
Fairly intensive refactoring of ScrollabilityCache.
Change-Id: I88669c0b9b79ca12a237606d5ff8be0e7e8b37ba
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
| -rw-r--r-- | core/java/android/view/ViewConfiguration.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java index 4e91ad4db977..d7335137140e 100644 --- a/core/java/android/view/ViewConfiguration.java +++ b/core/java/android/view/ViewConfiguration.java @@ -47,6 +47,12 @@ public class ViewConfiguration { private static final int SCROLL_BAR_DEFAULT_DELAY = 300; /** + * Default delay before the scrollbars fade in milliseconds for the first + * time they are shown to the user. + */ + private static final int SCROLL_BAR_DEFAULT_INITIAL_DELAY = 1500; + + /** * Defines the length of the fading edges in dips */ private static final int FADING_EDGE_LENGTH = 12; @@ -395,13 +401,23 @@ public class ViewConfiguration { } /** - * @return Default delay before the scrollbars fade in milliseconds + * @return Default delay in milliseconds before the scrollbars fade out + * after they have been awoken. */ public static int getScrollDefaultDelay() { return SCROLL_BAR_DEFAULT_DELAY; } /** + * @return Default delay in milliseconds before the scrollbars fade out + * after they are initially shown to the user. + * @hide Pending cleanup of ViewConfiguration values. + */ + public static int getScrollDefaultInitialDelay() { + return SCROLL_BAR_DEFAULT_INITIAL_DELAY; + } + + /** * @return the length of the fading edges in dips * * @deprecated Use {@link #getScaledFadingEdgeLength()} instead. |
