summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewConfiguration.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
-rw-r--r--core/java/android/view/ViewConfiguration.java18
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.