IT. Expert System.

Android Reference

ViewConfiguration


android.view

Class ViewConfiguration



  • public class ViewConfiguration
    extends Object
    Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
    • Method Detail

      • get

        public static ViewConfiguration get(Context context)
        Returns a configuration for the specified context. The configuration depends on various parameters of the context, like the dimension of the display or the density of the display.
        Parameters:
        context - The application context used to initialize the view configuration.
      • getScrollBarSize

        @Deprecated
        public static int getScrollBarSize()
        Deprecated. Use getScaledScrollBarSize() instead.
        Returns:
        The width of the horizontal scrollbar and the height of the vertical scrollbar in dips
      • getScaledScrollBarSize

        public int getScaledScrollBarSize()
        Returns:
        The width of the horizontal scrollbar and the height of the vertical scrollbar in pixels
      • getScrollBarFadeDuration

        public static int getScrollBarFadeDuration()
        Returns:
        Duration of the fade when scrollbars fade away in milliseconds
      • getScrollDefaultDelay

        public static int getScrollDefaultDelay()
        Returns:
        Default delay before the scrollbars fade in milliseconds
      • getScaledFadingEdgeLength

        public int getScaledFadingEdgeLength()
        Returns:
        the length of the fading edges in pixels
      • getPressedStateDuration

        public static int getPressedStateDuration()
        Returns:
        the duration in milliseconds of the pressed state in child components.
      • getLongPressTimeout

        public static int getLongPressTimeout()
        Returns:
        the duration in milliseconds before a press turns into a long press
      • getKeyRepeatTimeout

        public static int getKeyRepeatTimeout()
        Returns:
        the time before the first key repeat in milliseconds.
      • getKeyRepeatDelay

        public static int getKeyRepeatDelay()
        Returns:
        the time between successive key repeats in milliseconds.
      • getTapTimeout

        public static int getTapTimeout()
        Returns:
        the duration in milliseconds we will wait to see if a touch event is a tap or a scroll. If the user does not move within this interval, it is considered to be a tap.
      • getJumpTapTimeout

        public static int getJumpTapTimeout()
        Returns:
        the duration in milliseconds we will wait to see if a touch event is a jump tap. If the user does not move within this interval, it is considered to be a tap.
      • getDoubleTapTimeout

        public static int getDoubleTapTimeout()
        Returns:
        the duration in milliseconds between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.
      • getHoverTapTimeout

        public static int getHoverTapTimeout()
        Returns:
        the maximum duration in milliseconds between a touch pad touch and release for a given touch to be considered a tap (click) as opposed to a hover movement gesture.
      • getHoverTapSlop

        public static int getHoverTapSlop()
        Returns:
        the maximum distance in pixels that a touch pad touch can move before being released for it to be considered a tap (click) as opposed to a hover movement gesture.
      • getEdgeSlop

        @Deprecated
        public static int getEdgeSlop()
        Deprecated. Use getScaledEdgeSlop() instead.
        Returns:
        Inset in dips to look for touchable content when the user touches the edge of the screen
      • getScaledEdgeSlop

        public int getScaledEdgeSlop()
        Returns:
        Inset in pixels to look for touchable content when the user touches the edge of the screen
      • getTouchSlop

        @Deprecated
        public static int getTouchSlop()
        Deprecated. Use getScaledTouchSlop() instead.
        Returns:
        Distance in dips a touch can wander before we think the user is scrolling
      • getScaledTouchSlop

        public int getScaledTouchSlop()
        Returns:
        Distance in pixels a touch can wander before we think the user is scrolling
      • getScaledDoubleTapTouchSlop

        public int getScaledDoubleTapTouchSlop()
        Returns:
        Distance in pixels the first touch can wander before we do not consider this a potential double tap event
      • getScaledPagingTouchSlop

        public int getScaledPagingTouchSlop()
        Returns:
        Distance in pixels a touch can wander before we think the user is scrolling a full page
      • getDoubleTapSlop

        @Deprecated
        public static int getDoubleTapSlop()
        Deprecated. Use getScaledDoubleTapSlop() instead.
        Returns:
        Distance in dips between the first touch and second touch to still be considered a double tap
      • getScaledDoubleTapSlop

        public int getScaledDoubleTapSlop()
        Returns:
        Distance in pixels between the first touch and second touch to still be considered a double tap
      • getSendRecurringAccessibilityEventsInterval

        public static long getSendRecurringAccessibilityEventsInterval()
        Interval for dispatching a recurring accessibility event in milliseconds. This interval guarantees that a recurring event will be send at most once during the getSendRecurringAccessibilityEventsInterval() time frame.
        Returns:
        The delay in milliseconds.
      • getWindowTouchSlop

        @Deprecated
        public static int getWindowTouchSlop()
        Deprecated. Use getScaledWindowTouchSlop() instead.
        Returns:
        Distance in dips a touch must be outside the bounds of a window for it to be counted as outside the window for purposes of dismissing that window.
      • getScaledWindowTouchSlop

        public int getScaledWindowTouchSlop()
        Returns:
        Distance in pixels a touch must be outside the bounds of a window for it to be counted as outside the window for purposes of dismissing that window.
      • getMinimumFlingVelocity

        @Deprecated
        public static int getMinimumFlingVelocity()
        Deprecated. Use getScaledMinimumFlingVelocity() instead.
        Returns:
        Minimum velocity to initiate a fling, as measured in dips per second.
      • getScaledMinimumFlingVelocity

        public int getScaledMinimumFlingVelocity()
        Returns:
        Minimum velocity to initiate a fling, as measured in pixels per second.
      • getMaximumFlingVelocity

        @Deprecated
        public static int getMaximumFlingVelocity()
        Deprecated. Use getScaledMaximumFlingVelocity() instead.
        Returns:
        Maximum velocity to initiate a fling, as measured in dips per second.
      • getScaledMaximumFlingVelocity

        public int getScaledMaximumFlingVelocity()
        Returns:
        Maximum velocity to initiate a fling, as measured in pixels per second.
      • getMaximumDrawingCacheSize

        @Deprecated
        public static int getMaximumDrawingCacheSize()
        Deprecated. Use getScaledMaximumDrawingCacheSize() instead.
        The maximum drawing cache size expressed in bytes.
        Returns:
        the maximum size of View's drawing cache expressed in bytes
      • getScaledMaximumDrawingCacheSize

        public int getScaledMaximumDrawingCacheSize()
        The maximum drawing cache size expressed in bytes.
        Returns:
        the maximum size of View's drawing cache expressed in bytes
      • getScaledOverscrollDistance

        public int getScaledOverscrollDistance()
        Returns:
        The maximum distance a View should overscroll by when showing edge effects (in pixels).
      • getScaledOverflingDistance

        public int getScaledOverflingDistance()
        Returns:
        The maximum distance a View should overfling by when showing edge effects (in pixels).
      • getZoomControlsTimeout

        public static long getZoomControlsTimeout()
        The amount of time that the zoom controls should be displayed on the screen expressed in milliseconds.
        Returns:
        the time the zoom controls should be visible expressed in milliseconds.
      • getGlobalActionKeyTimeout

        public static long getGlobalActionKeyTimeout()
        The amount of time a user needs to press the relevant key to bring up the global actions dialog.
        Returns:
        how long a user needs to press the relevant key to bring up the global actions dialog.
      • getScrollFriction

        public static float getScrollFriction()
        The amount of friction applied to scrolls and flings.
        Returns:
        A scalar dimensionless value representing the coefficient of friction.
      • hasPermanentMenuKey

        public boolean hasPermanentMenuKey()
        Report if the device has a permanent menu key available to the user.

        As of Android 3.0, devices may not have a permanent menu key available. Apps should use the action bar to present menu options to users. However, there are some apps where the action bar is inappropriate or undesirable. This method may be used to detect if a menu key is present. If not, applications should provide another on-screen affordance to access functionality.

        Returns:
        true if a permanent menu key is present, false otherwise.
      • isFadingMarqueeEnabled

        public boolean isFadingMarqueeEnabled()
        Returns:
        Whether or not marquee should use fading edges.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1780 / 248358425. Delta: 0.29417 с