Lines Matching refs:anchor

81  * {@link CoordinatorLayout.LayoutParams#setAnchorId(int) anchor}. This view id must correspond
736 throw new IllegalStateException("An anchor may not be changed after CoordinatorLayout"
824 * Calculate the desired child rect relative to an anchor rect, respecting both
829 * @param anchorRect rect in CoordinatorLayout coordinates of the anchor view area
851 // Align to the anchor. This puts us in an assumed right/bottom child view gravity.
922 * CORE ASSUMPTION: anchor has been laid out by the time this is called for a given child view.
925 * @param anchor view to anchor child relative to; already laid out.
928 private void layoutChildWithAnchor(View child, View anchor, int layoutDirection) {
933 getDescendantRect(anchor, anchorRect);
1101 // Check child views before for anchor
1298 * Adjust the child left, top, right, bottom rect to the correct anchor view position,
1299 * respecting gravity and anchor gravity.
1302 * to be animated away from their anchor. However, if the anchor view is animated,
1303 * the child will be offset to match the anchor's translated position.
1762 * if {@code child} has set another view as it's anchor.</p>
1790 * if {@code child} has set another view as it's anchor.</p>
2167 * If an {@link #setAnchorId(int) anchor} is also specified, the gravity describes
2174 * {@link #getAnchorId() anchor} view the child should position itself relative to.
2180 * child should align relative to. If an {@link #setAnchorId(int) anchor} is present the
2247 * Get the id of this view's anchor.
2253 * @return A {@link View#getId() view id} or {@link View#NO_ID} if there is no anchor
2260 * Get the id of this view's anchor.
2266 * @param id The {@link View#getId() view id} of the anchor or
2267 * {@link View#NO_ID} if there is no anchor
2318 * Returns true if the anchor id changed to another valid view id since the anchor view
2409 * Invalidate the cached anchor view and direct child ancestor of that anchor.
2410 * The anchor will need to be
2419 * Locate the appropriate anchor view by the current {@link #setAnchorId(int) anchor id}
2420 * or return the cached anchor view if already known.
2424 * @return the located descendant anchor view, or null if the anchor id is
2454 * Determine the anchor view for the child view this LayoutParams is assigned to.
2484 + " to anchor view " + forChild);
2489 * Verify that the previously resolved anchor view is still valid - that it is still