|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.support.v4.view.ViewGroupCompat
public class ViewGroupCompat
Helper for accessing features in ViewGroup
introduced after API level 4 in a backwards compatible fashion.
Field Summary | |
---|---|
static int |
LAYOUT_MODE_CLIP_BOUNDS
This constant is a layoutMode . |
static int |
LAYOUT_MODE_OPTICAL_BOUNDS
This constant is a layoutMode . |
Method Summary | |
---|---|
static int |
getLayoutMode(android.view.ViewGroup group)
Returns the basis of alignment during layout operations on this ViewGroup: either LAYOUT_MODE_CLIP_BOUNDS or LAYOUT_MODE_OPTICAL_BOUNDS . |
static boolean |
onRequestSendAccessibilityEvent(android.view.ViewGroup group,
android.view.View child,
android.view.accessibility.AccessibilityEvent event)
Called when a child has requested sending an AccessibilityEvent and
gives an opportunity to its parent to augment the event. |
static void |
setLayoutMode(android.view.ViewGroup group,
int mode)
Sets the basis of alignment during the layout of this ViewGroup. |
static void |
setMotionEventSplittingEnabled(android.view.ViewGroup group,
boolean split)
Enable or disable the splitting of MotionEvents to multiple children during touch event dispatch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LAYOUT_MODE_CLIP_BOUNDS
layoutMode
.
Clip bounds are the raw values of left
,
top
,
right
and bottom
.
public static final int LAYOUT_MODE_OPTICAL_BOUNDS
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.
Method Detail |
---|
public static boolean onRequestSendAccessibilityEvent(android.view.ViewGroup group, android.view.View child, android.view.accessibility.AccessibilityEvent event)
AccessibilityEvent
and
gives an opportunity to its parent to augment the event.
If an AccessibilityDelegateCompat
has been specified via calling
ViewCompat.setAccessibilityDelegate(View, AccessibilityDelegateCompat)
its
AccessibilityDelegateCompat.onRequestSendAccessibilityEvent(ViewGroup, View,
AccessibilityEvent)
is responsible for handling this call.
group
- The group whose method to invoke.child
- The child which requests sending the event.event
- The event to be sent.
public static void setMotionEventSplittingEnabled(android.view.ViewGroup group, boolean split)
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.
group
- ViewGroup to modifysplit
- 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.public static int getLayoutMode(android.view.ViewGroup group)
LAYOUT_MODE_CLIP_BOUNDS
or LAYOUT_MODE_OPTICAL_BOUNDS
.
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
.
setLayoutMode(ViewGroup, int)
public static void setLayoutMode(android.view.ViewGroup group, int mode)
LAYOUT_MODE_CLIP_BOUNDS
or
LAYOUT_MODE_OPTICAL_BOUNDS
.
mode
- the layout mode to use during layout operationsgetLayoutMode(ViewGroup)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |