Searched refs:anchor (Results 1 - 18 of 18) sorted by relevance

/frameworks/support/v4/kitkat/android/support/v4/widget/
H A DPopupWindowCompatKitKat.java28 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument
30 popup.showAsDropDown(anchor, xoff, yoff, gravity);
/frameworks/support/v4/java/android/support/v4/widget/
H A DPopupWindowCompat.java32 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument
41 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument
43 popup.showAsDropDown(anchor, xoff, yoff);
52 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, argument
54 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity);
77 * corner of the anchor view offset by the specified x and y coordinates.
81 * corner of the popup is pinned at the top left corner of the anchor view.</p>
82 * <p>If the view later scrolls to move <code>anchor</code> to a different
86 * @param anchor the view on which to pin the popup window
87 * @param xoff A horizontal offset from the anchor i
91 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAppCompatPopupWindow.java48 public void showAsDropDown(View anchor, int xoff, int yoff) { argument
51 yoff -= anchor.getHeight();
53 super.showAsDropDown(anchor, xoff, yoff);
58 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { argument
61 yoff -= anchor.getHeight();
63 super.showAsDropDown(anchor, xoff, yoff, gravity);
67 public void update(View anchor, int xoff, int yoff, int width, int height) { argument
70 yoff -= anchor.getHeight();
72 super.update(anchor, xoff, yoff, width, height);
/frameworks/base/core/java/android/widget/
H A DPopupMenu.java36 * The popup will appear below the anchor view if there is room, or above it if there is not.
63 * Constructor to create a new popup menu with an anchor view.
67 * @param anchor Anchor view for this popup. The popup will appear below
68 * the anchor if there is room, or above it if there is not.
70 public PopupMenu(Context context, View anchor) { argument
71 this(context, anchor, Gravity.NO_GRAVITY);
75 * Constructor to create a new popup menu with an anchor view and alignment
80 * @param anchor Anchor view for this popup. The popup will appear below
81 * the anchor if there is room, or above it if there is not.
83 * anchor
85 PopupMenu(Context context, View anchor, int gravity) argument
106 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument
[all...]
H A DPopupWindow.java147 final View anchor = mAnchor != null ? mAnchor.get() : null;
148 if (anchor != null && mPopupView != null) {
152 updateAboveAnchor(findDropDownPosition(anchor, p, mAnchorXoff, mAnchorYoff,
314 // used when the drop-down is placed above its anchor view, and the one to be
315 // used when the drop-down is placed below its anchor view. We extract
321 // at least one other drawable, intended for the 'below-anchor state'.
325 // Find the above-anchor view - this one's easy, it should be labeled as such.
328 // Now, for the below-anchor view, look for any other drawable specified in the
329 // StateListDrawable which is not for the above-anchor state and use that.
657 * Allow PopupWindow to scroll the anchor'
947 showAsDropDown(View anchor) argument
967 showAsDropDown(View anchor, int xoff, int yoff) argument
988 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument
1223 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument
1330 getMaxAvailableHeight(View anchor) argument
1345 getMaxAvailableHeight(View anchor, int yOffset) argument
1366 getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) argument
1573 update(View anchor, int width, int height) argument
1592 update(View anchor, int xoff, int yoff, int width, int height) argument
1596 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height, int gravity) argument
1666 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument
[all...]
H A DActionMenuPresenter.java268 View anchor = findViewForItem(topSubMenu.getItem());
269 if (anchor == null) {
271 anchor = mOverflowButton;
276 mActionButtonPopup.setAnchorView(anchor);
306 // Post this for later; we might still need a layout for the anchor to be right.
704 // Give a reasonable anchor to nested submenus.
H A DListPopupWindow.java134 * If used to specify a popup width, the popup will match the width of the anchor view.
404 * Returns the view that will be used to anchor this popup.
406 * @return The popup's anchor view
413 * Sets the popup's anchor view. This popup will always be positioned relative to
414 * the anchor view when shown.
416 * @param anchor The view to use as an anchor.
418 public void setAnchorView(View anchor) { argument
419 mDropDownAnchorView = anchor;
423 * @return The horizontal offset of the popup from its anchor i
[all...]
H A DRelativeLayout.java1236 * When true, uses the parent as the anchor if the anchor doesn't exist or if
1237 * the anchor's visibility is GONE.
1405 * @param anchor The id of another view to use as an anchor,
1411 public void addRule(int verb, int anchor) { argument
1412 mRules[verb] = anchor;
1413 mInitialRules[verb] = anchor;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DPopupMenu.java66 * @param anchor Anchor view for this popup. The popup will appear below the anchor if there
69 public PopupMenu(Context context, View anchor) { argument
70 this(context, anchor, Gravity.NO_GRAVITY);
74 * Constructor to create a new popup menu with an anchor view and alignment
79 * @param anchor Anchor view for this popup. The popup will appear below
80 * the anchor if there is room, or above it if there is not.
82 * anchor.
84 public PopupMenu(Context context, View anchor, int gravity) { argument
85 this(context, anchor, gravit
105 PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, int popupStyleRes) argument
[all...]
H A DActionMenuPresenter.java267 View anchor = findViewForItem(topSubMenu.getItem());
268 if (anchor == null) {
270 anchor = mOverflowButton;
275 mActionButtonPopup.setAnchorView(anchor);
305 // Post this for later; we might still need a layout for the anchor to be right.
693 // Give a reasonable anchor to nested submenus.
H A DListPopupWindow.java150 * If used to specify a popup width, the popup will match the width of the anchor view.
420 * Returns the view that will be used to anchor this popup.
422 * @return The popup's anchor view
429 * Sets the popup's anchor view. This popup will always be positioned relative to the anchor
432 * @param anchor The view to use as an anchor.
434 public void setAnchorView(View anchor) { argument
435 mDropDownAnchorView = anchor;
439 * @return The horizontal offset of the popup from its anchor i
[all...]
/frameworks/compile/mclinker/include/mcld/Support/
H A DCommandLine.h42 void anchor();
77 virtual void anchor();
94 virtual void anchor();
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java109 public void setAnchorView(View anchor) { argument
110 mAnchorView = anchor;
123 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
138 View anchor = mAnchorView;
139 if (anchor != null) {
141 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest
143 anchor.addOnAttachStateChangeListener(this);
144 mPopup.setAnchorView(anchor);
235 final View anchor = mAnchorView;
236 if (anchor
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuPopupHelper.java112 public void setAnchorView(View anchor) { argument
113 mAnchorView = anchor;
126 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
141 View anchor = mAnchorView;
142 if (anchor != null) {
144 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest
146 mPopup.setAnchorView(anchor);
236 final View anchor = mAnchorView;
237 if (anchor == null || !anchor
[all...]
/frameworks/base/media/java/android/media/
H A DSubtitleController.java31 * media source. It allows specifying which tracks to display, on which anchor
146 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper}
263 /** @hide - should be called from anchor thread */
300 /** @hide - must be called from anchor thread */
343 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper}
360 * Should be called from the anchor's (UI) thread. {@see #Anchor.getSubtitleLooper}
437 * Subtitle anchor, an object that is able to display a subtitle renderer,
459 * @hide - called from anchor's looper (if any, both when unsetting and
462 public void setAnchor(Anchor anchor) { argument
463 if (mAnchor == anchor) {
[all...]
H A DMediaPlayer.java1936 SubtitleController.Anchor anchor) {
1939 mSubtitleController.setAnchor(anchor);
1934 setSubtitleAnchor( SubtitleController controller, SubtitleController.Anchor anchor) argument
/frameworks/compile/mclinker/lib/Support/
H A DCommandLine.cpp55 void SearchDirParser::anchor() function in class:SearchDirParser
89 void parser<mcld::sys::fs::Path>::anchor() function in class:parser
168 void parser<mcld::ZOption>::anchor() function in class:parser
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearLayoutManager.java130 * Re-used variable to keep anchor information on re-layout.
433 // 1) by checking children and other variables, find an anchor coordinate and an anchor
453 // calculate anchor position and coordinate
576 * even update anchor info if necessary.
579 * @param anchorInfo Simple data structure to keep anchor point information for the next layout
621 View anchor = getChildClosestToStart();
622 updateLayoutStateToFillStart(getPosition(anchor), startOffset);
630 View anchor = getChildClosestToEnd();
631 updateLayoutStateToFillEnd(getPosition(anchor), endOffse
[all...]

Completed in 3521 milliseconds