Searched defs:anchor (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/java/android/widget/
H A DPopupMenu.java32 * The popup will appear below the anchor view if there is room, or above it if there is not.
60 * @param anchor Anchor view for this popup. The popup will appear below the anchor if there
63 public PopupMenu(Context context, View anchor) { argument
68 mAnchor = anchor;
69 mPopup = new MenuPopupHelper(context, mMenu, anchor);
H A DListPopupWindow.java115 * If used to specify a popup width, the popup will match the width of the anchor view.
370 * Returns the view that will be used to anchor this popup.
372 * @return The popup's anchor view
379 * Sets the popup's anchor view. This popup will always be positioned relative to
380 * the anchor view when shown.
382 * @param anchor The view to use as an anchor.
384 public void setAnchorView(View anchor) { argument
385 mDropDownAnchorView = anchor;
389 * @return The horizontal offset of the popup from its anchor i
[all...]
H A DPopupWindow.java133 View anchor = mAnchor != null ? mAnchor.get() : null;
134 if (anchor != null && mPopupView != null) {
138 updateAboveAnchor(findDropDownPosition(anchor, p, mAnchorXoff, mAnchorYoff));
192 // used when the drop-down is placed above its anchor view, and the one to be
193 // used when the drop-down is placed below its anchor view. We extract
199 // at least one other drawable, intended for the 'below-anchor state'.
203 // Find the above-anchor view - this one's easy, it should be labeled as such.
206 // Now, for the below-anchor view, look for any other drawable specified in the
207 // StateListDrawable which is not for the above-anchor state and use that.
599 * Allow PopupWindow to scroll the anchor'
859 showAsDropDown(View anchor) argument
877 showAsDropDown(View anchor, int xoff, int yoff) argument
1093 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff) argument
1181 getMaxAvailableHeight(View anchor) argument
1196 getMaxAvailableHeight(View anchor, int yOffset) argument
1217 getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) argument
1422 update(View anchor, int width, int height) argument
1441 update(View anchor, int xoff, int yoff, int width, int height) argument
1445 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height) argument
1512 registerForScrollChanged(View anchor, int xoff, int yoff) argument
[all...]
H A DRelativeLayout.java1057 * When true, uses the parent as the anchor if the anchor doesn't exist or if
1058 * the anchor's visibility is GONE.
1180 * @param anchor The id of another view to use as an anchor,
1186 public void addRule(int verb, int anchor) { argument
1187 mRules[verb] = anchor;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java91 public void setAnchorView(View anchor) { argument
92 mAnchorView = anchor;
101 throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
114 View anchor = mAnchorView;
115 if (anchor != null) {
117 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest
119 anchor.addOnAttachStateChangeListener(this);
120 mPopup.setAnchorView(anchor);
196 final View anchor = mAnchorView;
197 if (anchor
[all...]

Completed in 81 milliseconds