Udostępnij za pośrednictwem


PopupMenu.Gravity Property

Definition

Sets the gravity used to align the popup window to its anchor view.

public virtual Android.Views.GravityFlags Gravity { [Android.Runtime.Register("getGravity", "()I", "GetGetGravityHandler", ApiSince=23)] get; [Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getGravity", "()I", "GetGetGravityHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setGravity", "(I)V", "GetSetGravity_IHandler", ApiSince=23)>]
member this.Gravity : Android.Views.GravityFlags with get, set

Property Value

the gravity used to align the popup window to its anchor view

Attributes

Remarks

Property getter documentation:

Java documentation for android.widget.PopupMenu.getGravity().

Property setter documentation:

Sets the gravity used to align the popup window to its anchor view.

If the popup is showing, calling this method will take effect only the next time the popup is shown.

Java documentation for android.widget.PopupMenu.setGravity(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.

Applies to