Lines Matching refs:Behavior

77  * <p>By specifying {@link CoordinatorLayout.Behavior Behaviors} for child views of a
120 static final ThreadLocal<Map<String, Constructor<Behavior>>> sConstructors =
352 * Reset all Behavior-related tracking records either to clean up or in preparation
359 final Behavior b = ((LayoutParams) mBehaviorTouchView.getLayoutParams()).getBehavior();
415 final Behavior b = lp.getBehavior();
505 final Behavior b = lp.getBehavior();
561 static Behavior parseBehavior(Context context, AttributeSet attrs, String name) {
581 Map<String, Constructor<Behavior>> constructors = sConstructors.get();
586 Constructor<Behavior> c = constructors.get(fullName);
588 final Class<Behavior> clazz = (Class<Behavior>) Class.forName(fullName, true,
596 throw new RuntimeException("Could not inflate Behavior subclass " + fullName, e);
660 * {@link CoordinatorLayout.Behavior Behavior} is present. The Behavior may choose to delegate
737 final Behavior b = lp.getBehavior();
769 final Behavior b = lp.getBehavior();
787 * {@link CoordinatorLayout.Behavior Behavior} is present. The Behavior may choose to
817 final Behavior behavior = lp.getBehavior();
1140 * Dispatch any dependent view changes to the relevant {@link Behavior} instances.
1186 final Behavior b = checkLp.getBehavior();
1221 CoordinatorLayout.Behavior b = lp.getBehavior();
1231 * {@link Behavior#onDependentViewChanged(CoordinatorLayout, View, View)} to the associated
1232 * {@link Behavior} instances of views which depend on the provided {@link View}.
1252 CoordinatorLayout.Behavior b = lp.getBehavior();
1397 // If we have needed to move, make sure to notify the child's Behavior
1398 final Behavior b = lp.getBehavior();
1474 final Behavior viewBehavior = lp.getBehavior();
1501 final Behavior viewBehavior = lp.getBehavior();
1519 final Behavior viewBehavior = lp.getBehavior();
1543 final Behavior viewBehavior = lp.getBehavior();
1569 final Behavior viewBehavior = lp.getBehavior();
1602 final Behavior viewBehavior = lp.getBehavior();
1625 final Behavior viewBehavior = lp.getBehavior();
1663 * Defines the default {@link Behavior} of a {@link View} class.
1673 Class<? extends Behavior> value();
1679 * <p>A Behavior implements one or more interactions that a user can take on a child view.
1682 * @param <V> The View type that this Behavior operates on
1684 public static abstract class Behavior<V extends View> {
1689 public Behavior() {
1693 * Default constructor for inflating Behaviors from layout. The Behavior will have
1700 public Behavior(Context context, AttributeSet attrs) {
1711 * <p>Once a Behavior intercepts touch events, the rest of the event stream will
1717 * @param child the child view associated with this Behavior
1719 * @return true if this Behavior would like to intercept and take over the event stream.
1727 * Respond to CoordinatorLayout touch events after this Behavior has started
1731 * manipulate its child views. For example, a Behavior may allow a user to drag a
1736 * @param child the child view associated with this Behavior
1738 * @return true if this Behavior handled this touch event and would like to continue
1827 * of the standard layout flow. A Behavior may use this method to appropriately update
1834 * <p>Note that if a Behavior changes the layout of a child via this method, it should
1840 * <p>If the Behavior changes the child view's size or position, it should return true.
1846 * @return true if the Behavior changed the child view's size or position, false otherwise
1856 * A Behavior may use this method to appropriately update the child view in response.</p>
1872 * <p>If a property determined by the Behavior such as other dependent views would change,
1873 * the Behavior should report a child view as dirty. This will prompt the CoordinatorLayout
1874 * to re-query Behavior-determined properties as appropriate.</p>
1888 * in place of the default child measurement behavior. The Behavior's implementation
1901 * @return true if the Behavior measured the child view, false if the CoordinatorLayout
1914 * in place of the default child layout behavior. The Behavior's implementation can
1919 * <p>If a Behavior implements
1931 * @return true if the Behavior performed layout of the child view, false to request
1941 * Associate a Behavior-specific tag object with the given child view.
1968 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may respond
1973 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
1975 * @param child the child view of the CoordinatorLayout this Behavior is associated with
1982 * @return true if the Behavior wishes to accept this nested scroll
1994 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may elect
1995 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
1999 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2001 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2019 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may elect
2020 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2028 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2030 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2044 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2045 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2051 * supplied in pixels. <em>Each Behavior responding to the nested scroll will receive the
2055 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2057 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2077 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2078 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2084 * distance itself. <em>Each Behavior responding to the nested scroll will receive the
2086 * of pixels in either direction that any Behavior responding to the nested scroll reported
2089 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2091 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2110 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2111 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2122 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2124 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2129 * @return true if the Behavior consumed the fling
2141 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2142 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2148 * Behavior can return true to indicate that it consumed the fling. If at least one
2149 * Behavior returns true, the fling should not be acted upon by the child.</p>
2151 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2153 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2157 * @return true if the Behavior consumed the fling
2169 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2173 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2175 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2207 * <p>Behavior state is only saved when both the parent {@link CoordinatorLayout} and
2229 * A {@link Behavior} that the child view should obey.
2231 Behavior mBehavior;
2346 public Behavior getBehavior() {
2355 * {@link Behavior#setTag(android.view.View, Object) Behavior tag}.</p>
2359 public void setBehavior(Behavior behavior) {
2392 * Returns true if the associated Behavior previously blocked interaction with other views
2406 * Check if the associated Behavior wants to block interaction below the given child
2427 * Reset tracking of Behavior-specific touch interactions. This includes
2507 * "dirty" and needs to be updated. A Behavior should consider a child dirty
2508 * whenever a property returned by another Behavior method would have changed,
2632 final Behavior b = lp.getBehavior();
2652 final Behavior b = lp.getBehavior();
2655 // If the child has an ID and a Behavior, let it save some state...