3131public class ViewConfiguration {
3232 /**
3333 * Expected bit depth of the display panel.
34- *
34+ *
3535 * @hide
3636 */
3737 public static final float PANEL_BIT_DEPTH = 24 ;
3838
3939 /**
4040 * Minimum alpha required for a view to draw.
41- *
41+ *
4242 * @hide
4343 */
4444 public static final float ALPHA_THRESHOLD = 0.5f / PANEL_BIT_DEPTH ;
@@ -72,8 +72,8 @@ public class ViewConfiguration {
7272 * Defines the duration in milliseconds of the pressed state in child
7373 * components.
7474 */
75- private static final int PRESSED_STATE_DURATION = 125 ;
76-
75+ private static final int PRESSED_STATE_DURATION = 64 ;
76+
7777 /**
7878 * Defines the default duration in milliseconds before a press turns into
7979 * a long press
@@ -91,18 +91,18 @@ public class ViewConfiguration {
9191 * lock screen, etc).
9292 */
9393 private static final int GLOBAL_ACTIONS_KEY_TIMEOUT = 500 ;
94-
94+
9595 /**
96- * Defines the duration in milliseconds we will wait to see if a touch event
96+ * Defines the duration in milliseconds we will wait to see if a touch event
9797 * is a tap or a scroll. If the user does not move within this interval, it is
98- * considered to be a tap.
98+ * considered to be a tap.
9999 */
100100 private static final int TAP_TIMEOUT = 180 ;
101-
101+
102102 /**
103- * Defines the duration in milliseconds we will wait to see if a touch event
103+ * Defines the duration in milliseconds we will wait to see if a touch event
104104 * is a jump tap. If the user does not complete the jump tap within this interval, it is
105- * considered to be a tap.
105+ * considered to be a tap.
106106 */
107107 private static final int JUMP_TAP_TIMEOUT = 500 ;
108108
@@ -128,7 +128,7 @@ public class ViewConfiguration {
128128 private static final int HOVER_TAP_SLOP = 20 ;
129129
130130 /**
131- * Defines the duration in milliseconds we want to display zoom controls in response
131+ * Defines the duration in milliseconds we want to display zoom controls in response
132132 * to a user panning within an application.
133133 */
134134 private static final int ZOOM_CONTROLS_TIMEOUT = 3000 ;
@@ -137,7 +137,7 @@ public class ViewConfiguration {
137137 * Inset in dips to look for touchable content when the user touches the edge of the screen
138138 */
139139 private static final int EDGE_SLOP = 12 ;
140-
140+
141141 /**
142142 * Distance a touch can wander before we think the user is scrolling in dips.
143143 * Note that this value defined here is only used as a fallback by legacy/misbehaving
@@ -150,7 +150,7 @@ public class ViewConfiguration {
150150 * the characteristics of the touch panel and firmware.
151151 */
152152 private static final int TOUCH_SLOP = 8 ;
153-
153+
154154 /**
155155 * Distance the first touch can wander before we stop considering this event a double tap
156156 * (in dips)
@@ -170,12 +170,12 @@ public class ViewConfiguration {
170170 * config_viewConfigurationTouchSlop * 2 when provided with a Context.
171171 */
172172 private static final int PAGING_TOUCH_SLOP = TOUCH_SLOP * 2 ;
173-
173+
174174 /**
175175 * Distance in dips between the first touch and second touch to still be considered a double tap
176176 */
177177 private static final int DOUBLE_TAP_SLOP = 100 ;
178-
178+
179179 /**
180180 * Distance in dips a touch needs to be outside of a window's bounds for it to
181181 * count as outside for purposes of dismissing the window.
@@ -186,7 +186,7 @@ public class ViewConfiguration {
186186 * Minimum velocity to initiate a fling, as measured in dips per second
187187 */
188188 private static final int MINIMUM_FLING_VELOCITY = 50 ;
189-
189+
190190 /**
191191 * Maximum velocity to initiate a fling, as measured in dips per second
192192 */
@@ -281,7 +281,7 @@ public ViewConfiguration() {
281281 *
282282 * @param context The application context used to initialize this view configuration.
283283 *
284- * @see #get(android.content.Context)
284+ * @see #get(android.content.Context)
285285 * @see android.util.DisplayMetrics
286286 */
287287 private ViewConfiguration (Context context ) {
@@ -383,7 +383,7 @@ public static int getScrollBarFadeDuration() {
383383 public static int getScrollDefaultDelay () {
384384 return SCROLL_BAR_DEFAULT_DELAY ;
385385 }
386-
386+
387387 /**
388388 * @return the length of the fading edges in dips
389389 *
@@ -435,7 +435,7 @@ public static int getKeyRepeatDelay() {
435435 /**
436436 * @return the duration in milliseconds we will wait to see if a touch event
437437 * is a tap or a scroll. If the user does not move within this interval, it is
438- * considered to be a tap.
438+ * considered to be a tap.
439439 */
440440 public static int getTapTimeout () {
441441 return TAP_TIMEOUT ;
@@ -444,12 +444,12 @@ public static int getTapTimeout() {
444444 /**
445445 * @return the duration in milliseconds we will wait to see if a touch event
446446 * is a jump tap. If the user does not move within this interval, it is
447- * considered to be a tap.
447+ * considered to be a tap.
448448 */
449449 public static int getJumpTapTimeout () {
450450 return JUMP_TAP_TIMEOUT ;
451451 }
452-
452+
453453 /**
454454 * @return the duration in milliseconds between the first tap's up event and
455455 * the second tap's down event for an interaction to be considered a
@@ -514,7 +514,7 @@ public static int getTouchSlop() {
514514 public int getScaledTouchSlop () {
515515 return mTouchSlop ;
516516 }
517-
517+
518518 /**
519519 * @return Distance in pixels the first touch can wander before we do not consider this a
520520 * potential double tap event
@@ -543,7 +543,7 @@ public int getScaledPagingTouchSlop() {
543543 public static int getDoubleTapSlop () {
544544 return DOUBLE_TAP_SLOP ;
545545 }
546-
546+
547547 /**
548548 * @return Distance in pixels between the first touch and second touch to still be
549549 * considered a double tap
@@ -595,7 +595,7 @@ public static int getWindowTouchSlop() {
595595 public int getScaledWindowTouchSlop () {
596596 return mWindowTouchSlop ;
597597 }
598-
598+
599599 /**
600600 * @return Minimum velocity to initiate a fling, as measured in dips per second.
601601 *
@@ -629,7 +629,7 @@ public static int getMaximumFlingVelocity() {
629629 public int getScaledMaximumFlingVelocity () {
630630 return mMaximumFlingVelocity ;
631631 }
632-
632+
633633 /**
634634 * The maximum drawing cache size expressed in bytes.
635635 *
@@ -671,7 +671,7 @@ public int getScaledOverflingDistance() {
671671 /**
672672 * The amount of time that the zoom controls should be
673673 * displayed on the screen expressed in milliseconds.
674- *
674+ *
675675 * @return the time the zoom controls should be visible expressed
676676 * in milliseconds.
677677 */
@@ -692,7 +692,7 @@ public static long getGlobalActionKeyTimeout() {
692692
693693 /**
694694 * The amount of friction applied to scrolls and flings.
695- *
695+ *
696696 * @return A scalar dimensionless value representing the coefficient of
697697 * friction.
698698 */
0 commit comments