summaryrefslogtreecommitdiff
path: root/core/java/android/view/ViewConfiguration.java
diff options
context:
space:
mode:
authorMike Cleron <mcleron@google.com>2009-09-27 19:14:12 -0700
committerMike Cleron <mcleron@google.com>2009-09-28 10:47:04 -0700
commitf116bf8884b5b58aae261d148003811aa4a7c6e9 (patch)
tree4f402f42beb651e4a549818e3c71321f71957036 /core/java/android/view/ViewConfiguration.java
parent5d062bc3de2406bd96c08ddb9c0940f4e75b4d7c (diff)
Fading scrollbars return. But you have to opt in.
Diffstat (limited to 'core/java/android/view/ViewConfiguration.java')
-rw-r--r--core/java/android/view/ViewConfiguration.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java
index 377646332c97..993048f5ecf2 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;
@@ -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.