Lines Matching defs:Behavior

87  * <p>By specifying {@link CoordinatorLayout.Behavior Behaviors} for child views of a
133 static final ThreadLocal<Map<String, Constructor<Behavior>>> sConstructors =
360 * Reset all Behavior-related tracking records either to clean up or in preparation
367 final Behavior b = ((LayoutParams) mBehaviorTouchView.getLayoutParams()).getBehavior();
423 final Behavior b = lp.getBehavior();
513 final Behavior b = lp.getBehavior();
569 static Behavior parseBehavior(Context context, AttributeSet attrs, String name) {
589 Map<String, Constructor<Behavior>> constructors = sConstructors.get();
594 Constructor<Behavior> c = constructors.get(fullName);
596 final Class<Behavior> clazz = (Class<Behavior>) Class.forName(fullName, true,
604 throw new RuntimeException("Could not inflate Behavior subclass " + fullName, e);
690 * {@link CoordinatorLayout.Behavior Behavior} is present. The Behavior may choose to delegate
767 final Behavior b = lp.getBehavior();
799 final Behavior b = lp.getBehavior();
817 * {@link CoordinatorLayout.Behavior Behavior} is present. The Behavior may choose to
847 final Behavior behavior = lp.getBehavior();
1199 * Dispatch any dependent view changes to the relevant {@link Behavior} instances.
1277 final Behavior b = checkLp.getBehavior();
1322 final Behavior behavior = lp.getBehavior();
1398 * {@link Behavior#onDependentViewChanged(CoordinatorLayout, View, View)} to the associated
1399 * {@link Behavior} instances of views which depend on the provided {@link View}.
1413 CoordinatorLayout.Behavior b = lp.getBehavior();
1563 // If we have needed to move, make sure to notify the child's Behavior
1564 final Behavior b = lp.getBehavior();
1641 final Behavior viewBehavior = lp.getBehavior();
1669 final Behavior viewBehavior = lp.getBehavior();
1688 final Behavior viewBehavior = lp.getBehavior();
1713 final Behavior viewBehavior = lp.getBehavior();
1740 final Behavior viewBehavior = lp.getBehavior();
1774 final Behavior viewBehavior = lp.getBehavior();
1798 final Behavior viewBehavior = lp.getBehavior();
1837 * Defines the default {@link Behavior} of a {@link View} class.
1847 Class<? extends Behavior> value();
1853 * <p>A Behavior implements one or more interactions that a user can take on a child view.
1856 * @param <V> The View type that this Behavior operates on
1858 public static abstract class Behavior<V extends View> {
1863 public Behavior() {
1867 * Default constructor for inflating Behaviors from layout. The Behavior will have
1874 public Behavior(Context context, AttributeSet attrs) {
1878 * Called when the Behavior has been attached to a LayoutParams instance.
1883 * @param params the LayoutParams instance that this Behavior has been attached to
1889 * Called when the Behavior has been detached from its holding LayoutParams instance.
1891 * <p>This will only be called if the Behavior has been explicitly removed from the
1892 * LayoutParams instance via {@link LayoutParams#setBehavior(Behavior)}. It will not be
1906 * <p>Once a Behavior intercepts touch events, the rest of the event stream will
1912 * @param child the child view associated with this Behavior
1914 * @return true if this Behavior would like to intercept and take over the event stream.
1922 * Respond to CoordinatorLayout touch events after this Behavior has started
1926 * manipulate its child views. For example, a Behavior may allow a user to drag a
1931 * @param child the child view associated with this Behavior
1933 * @return true if this Behavior handled this touch event and would like to continue
2024 * of the standard layout flow. A Behavior may use this method to appropriately update
2031 * <p>Note that if a Behavior changes the layout of a child via this method, it should
2037 * <p>If the Behavior changes the child view's size or position, it should return true.
2043 * @return true if the Behavior changed the child view's size or position, false otherwise
2053 * A Behavior may use this method to appropriately update the child view in response.</p>
2079 * in place of the default child measurement behavior. The Behavior's implementation
2092 * @return true if the Behavior measured the child view, false if the CoordinatorLayout
2105 * in place of the default child layout behavior. The Behavior's implementation can
2110 * <p>If a Behavior implements
2122 * @return true if the Behavior performed layout of the child view, false to request
2132 * Associate a Behavior-specific tag object with the given child view.
2159 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may respond
2164 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2166 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2173 * @return true if the Behavior wishes to accept this nested scroll
2185 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may elect
2186 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2190 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2192 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2210 * <p>Any Behavior associated with any direct child of the CoordinatorLayout may elect
2211 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2219 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2221 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2235 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2236 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2242 * supplied in pixels. <em>Each Behavior responding to the nested scroll will receive the
2246 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2248 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2268 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2269 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2275 * distance itself. <em>Each Behavior responding to the nested scroll will receive the
2277 * of pixels in either direction that any Behavior responding to the nested scroll reported
2280 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2282 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2301 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2302 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2313 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2315 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2320 * @return true if the Behavior consumed the fling
2332 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2333 * to accept the nested scroll as part of {@link #onStartNestedScroll}. Each Behavior
2339 * Behavior can return true to indicate that it consumed the fling. If at least one
2340 * Behavior returns true, the fling should not be acted upon by the child.</p>
2342 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2344 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2348 * @return true if the Behavior consumed the fling
2360 * <p>Any Behavior associated with the direct child of the CoordinatorLayout may elect
2364 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2366 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2384 * @param coordinatorLayout the CoordinatorLayout parent of the view this Behavior is
2386 * @param child the child view of the CoordinatorLayout this Behavior is
2391 * @return true if the Behavior handled the request
2421 * <p>Behavior state is only saved when both the parent {@link CoordinatorLayout} and
2444 * @param parent the CoordinatorLayout parent of the view this Behavior is
2446 * @param child the child view of the CoordinatorLayout this Behavior is associated with
2461 * A {@link Behavior} that the child view should obey.
2463 Behavior mBehavior;
2555 // If we have a Behavior, dispatch that it has been attached
2604 public Behavior getBehavior() {
2613 * {@link Behavior#setTag(android.view.View, Object) Behavior tag}.</p>
2617 public void setBehavior(@Nullable Behavior behavior) {
2629 // Now dispatch that the Behavior has been attached
2660 * Returns true if the associated Behavior previously blocked interaction with other views
2674 * Check if the associated Behavior wants to block interaction below the given child
2695 * Reset tracking of Behavior-specific touch interactions. This includes
2892 final Behavior b = lp.getBehavior();
2912 final Behavior b = lp.getBehavior();
2915 // If the child has an ID and a Behavior, let it save some state...
2929 final Behavior behavior = lp.getBehavior();