Research on pulley controls v. Brief Introduction to viewconfiguration

Source: Internet
Author: User
/*** Contains methods and standard constants used to set the UI timeout, size, and distance */public class viewconfiguration {// sets the width of the horizontal scroll bar and the height of the vertical scroll bar, the Unit is pixel PX Private Static final int scroll_bar_size = 10; // defines the time when the scroll bar gradually disappears, in milliseconds Private Static final int scroll_bar_fade_duration = 250; // The default number of seconds after the scroll bar disappears. Unit: Private Static final int scroll_bar_default_delay = 300; // defines the length of Private Static final int fading_edge_length = 12; // define the continuous event Private Static of the sub-control press status Final int pressed_state_duration = 125; // defines a time when the status is changed. Private Static final int long_press_timeout = 500; // defines that the user is holding down the appropriate button, the duration of the global pop-up dialog box is Private Static final int global_actions_key_timeout = 500; // defines the time required for clicking an event or sliding event in a touch event, if the user slides within this time period, it is considered as a click event Private Static final int tap_timeout = 115; /*** defines the duration in milliseconds we will wait to see if a touch event * is a jump tap. If the user does not complete the jump tap within this interval, it is * considered to be a tap. * // when defining a touch event, it is a click event. If the user does not complete the click within this time period, it is considered as a click event Private Static final int jump_tap_timeout = 500; // define the interval for double-click events Private Static final int double_tap_timeout = 300; // define the time for a scaling control to feedback to the user interface Private Static final int zoom_controls_timeout = 3000; /*** inset in pixels to look for touchable content when the user touches the edge of the screen */Private Static final int edge_slop = 12; /*** distance a touch can wander befo Re we think the user is scrolling in pixels */Private Static final int touch_slop = 16; /*** distance a touch can wander before we think the user is attempting a paged scroll * (in dips) */Private Static final int paging_touch_slop = touch_slop * 2; /*** distance between the first touch and second touch to still be considered a double tap */Private Static final int double_tap_slop = 100 ;/** * Distance a touch needs to be outside of a window's Bounds for it to * count as outside for purposes of dismissing the window. */Private Static final int window_touch_slop = 16; // minimum fling initialization speed. The unit is the number of pixels per second. Private Static final int minimum_fling_velocity = 50; // It is used to initialize the maximum fling speed. The unit is the number of pixels per second. Private Static final int maximum_fling_velocity = 4000; // The maximum size of the View Drawing cache, in bytes. In argb888 format, this size should be at least equal to the screen size @ deprecated Private Static final int maximum_drawing_cache_size = 320*480*4; // hvga screen, argb8888 // coefficient of friction strength between flings and scrolls: Private Static float scroll_friction = 0.015f;/*** max distance to over scroll for edge effects */Private Static final int overscroll_distance = 0; /*** max distance to over fling for edge effects */Private Static final int overfling_distance = 4 ;}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.