Class Overview
Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
Summary
|
[Expand]
Inherited Methods |
From class java.lang.Object
|
Object
|
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
|
|
boolean
|
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
|
|
void
|
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver.
|
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of java.lang.Class which represents the class
of the receiver.
|
|
int
|
hashCode()
Returns an integer hash code for the receiver.
|
|
final
void
|
notify()
Causes one thread which is wait ing on the receiver to be
made ready to run.
|
|
final
void
|
notifyAll()
Causes all threads which are wait ing on the receiver to
be made ready to run.
|
|
String
|
toString()
Returns a string containing a concise, human-readable description of the
receiver.
|
|
final
void
|
wait(long time, int frac)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait(long time)
Causes the thread which sent this message to be made not ready to run
either pending some change in the receiver (as indicated by
notify or notifyAll) or the expiration of
the timeout.
|
|
final
void
|
wait()
Causes the thread which sent this message to be made not ready to run
pending some change in the receiver (as indicated by notify
or notifyAll).
|
|
Public Constructors
public
ViewConfiguration
()
Public Methods
public
static
int
getEdgeSlop
()
Returns
- Inset in pixels to look for touchable content when the user touches the edge of the
screen
public
static
int
getFadingEdgeLength
()
Returns
- Defines the length of the fading edges in pixels
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.
public
static
int
getJumpTapTimeout
()
Returns
- Defines 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.
public
static
int
getLongPressTimeout
()
Returns
- Defines the duration in milliseconds before a press turns into
a long press
public
static
int
getMaximumDrawingCacheSize
()
The maximum drawing cache size expressed in bytes.
Returns
- the maximum size of View's drawing cache expressed in bytes
public
static
int
getMinimumFlingVelocity
()
Minimum velocity to initiate a fling, as measured in pixels per second
public
static
int
getPressedStateDuration
()
Returns
- Defines the duration in milliseconds of the pressed state in child
components.
public
static
int
getScrollBarSize
()
Returns
- The width of the horizontal scrollbar and the height of the vertical
scrollbar in pixels
public
static
float
getScrollFriction
()
The amount of friction applied to scrolls and flings.
Returns
- A scalar dimensionless value representing the coefficient of
friction.
public
static
int
getTapTimeout
()
Returns
- Defines the duration in milliseconds we will wait to see if a touch event
is a top or a scroll. If the user does not move within this interval, it is
considered to be a tap.
public
static
int
getTouchSlop
()
Returns
- Distance a touch can wander before we think the user is scrolling in pixels
public
static
int
getWindowTouchSlop
()
Returns
- Distance 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.
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.