Constants

public
static
final
int
LAYOUT_MODE_CLIP_BOUNDS

public
static
final
int
LAYOUT_MODE_OPTICAL_BOUNDS

This constant is a layoutMode.
Optical bounds describe where a widget appears to be. They sit inside the clip
bounds which need to cover a larger area to allow other effects,
such as shadows and glows, to be drawn.

Constant Value:
1
(0x00000001)

Public Methods

If no layoutMode was explicitly set, either programmatically or in an XML resource,
the method returns the layoutMode of the view's parent ViewGroup if such a parent exists,
otherwise the method returns a default value of LAYOUT_MODE_CLIP_BOUNDS.

Parameters

See Also

Enable or disable the splitting of MotionEvents to multiple children during touch event
dispatch. This behavior is enabled by default for applications that target an
SDK version of 11 (Honeycomb) or newer. On earlier platform versions this feature
was not supported and this method is a no-op.

When this option is enabled MotionEvents may be split and dispatched to different child
views depending on where each pointer initially went down. This allows for user interactions
such as scrolling two panes of content independently, chording of buttons, and performing
independent gestures on different pieces of content.

Parameters

group

ViewGroup to modify

split

true to allow MotionEvents to be split and dispatched to multiple
child views. false to only allow one child view to be the target of
any MotionEvent received by this ViewGroup.