PopupWindow.ShowAsDropDown Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ShowAsDropDown(View) |
Display the content view in a popup window anchored to the bottom-left corner of the anchor view. |
ShowAsDropDown(View, Int32, Int32) |
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates. |
ShowAsDropDown(View, Int32, Int32, GravityFlags) |
Displays the content view in a popup window anchored to the corner of another view. |
ShowAsDropDown(View)
Display the content view in a popup window anchored to the bottom-left corner of the anchor view.
[Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;)V", "GetShowAsDropDown_Landroid_view_View_Handler")]
public virtual void ShowAsDropDown (Android.Views.View? anchor);
[<Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;)V", "GetShowAsDropDown_Landroid_view_View_Handler")>]
abstract member ShowAsDropDown : Android.Views.View -> unit
override this.ShowAsDropDown : Android.Views.View -> unit
Parameters
- anchor
- View
the view on which to pin the popup window
- Attributes
Remarks
Display the content view in a popup window anchored to the bottom-left corner of the anchor view. If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent scroll view can be scrolled, the bottom-left corner of the popup is pinned at the top left corner of the anchor view.
Java documentation for android.widget.PopupWindow.showAsDropDown(android.view.View)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
ShowAsDropDown(View, Int32, Int32)
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates.
[Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;II)V", "GetShowAsDropDown_Landroid_view_View_IIHandler")]
public virtual void ShowAsDropDown (Android.Views.View? anchor, int xoff, int yoff);
[<Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;II)V", "GetShowAsDropDown_Landroid_view_View_IIHandler")>]
abstract member ShowAsDropDown : Android.Views.View * int * int -> unit
override this.ShowAsDropDown : Android.Views.View * int * int -> unit
Parameters
- anchor
- View
the view on which to pin the popup window
- xoff
- Int32
A horizontal offset from the anchor in pixels
- yoff
- Int32
A vertical offset from the anchor in pixels
- Attributes
Remarks
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates. If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent scroll view can be scrolled, the bottom-left corner of the popup is pinned at the top left corner of the anchor view.
If the view later scrolls to move anchor
to a different location, the popup will be moved correspondingly.
Java documentation for android.widget.PopupWindow.showAsDropDown(android.view.View, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
ShowAsDropDown(View, Int32, Int32, GravityFlags)
Displays the content view in a popup window anchored to the corner of another view.
[Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;III)V", "GetShowAsDropDown_Landroid_view_View_IIIHandler")]
public virtual void ShowAsDropDown (Android.Views.View? anchor, int xoff, int yoff, Android.Views.GravityFlags gravity);
[<Android.Runtime.Register("showAsDropDown", "(Landroid/view/View;III)V", "GetShowAsDropDown_Landroid_view_View_IIIHandler")>]
abstract member ShowAsDropDown : Android.Views.View * int * int * Android.Views.GravityFlags -> unit
override this.ShowAsDropDown : Android.Views.View * int * int * Android.Views.GravityFlags -> unit
Parameters
- anchor
- View
the view on which to pin the popup window
- xoff
- Int32
A horizontal offset from the anchor in pixels
- yoff
- Int32
A vertical offset from the anchor in pixels
- gravity
- GravityFlags
Alignment of the popup relative to the anchor
- Attributes
Remarks
Displays the content view in a popup window anchored to the corner of another view. The window is positioned according to the specified gravity and offset by the specified x and y coordinates.
If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent view can be scrolled, the specified vertical gravity will be ignored and the popup will anchor itself such that it is visible.
If the view later scrolls to move anchor
to a different location, the popup will be moved correspondingly.
Java documentation for android.widget.PopupWindow.showAsDropDown(android.view.View, int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.