PopupWindow.Height Property

Definition

Returns the popup's requested height. -or- Sets the popup's requested height.

public virtual int Height { [Android.Runtime.Register("getHeight", "()I", "GetGetHeightHandler")] get; [Android.Runtime.Register("setHeight", "(I)V", "GetSetHeight_IHandler")] set; }
[<get: Android.Runtime.Register("getHeight", "()I", "GetGetHeightHandler")>]
[<set: Android.Runtime.Register("setHeight", "(I)V", "GetSetHeight_IHandler")>]
member this.Height : int with get, set

Property Value

the popup height in pixels or a layout constant

Attributes

Remarks

Property getter documentation:

Returns the popup's requested height. May be a layout constant such as LayoutParams#WRAP_CONTENT or LayoutParams#MATCH_PARENT.

The actual size of the popup may depend on other factors such as clipping and window layout.

Java documentation for android.widget.PopupWindow.getHeight().

Property setter documentation:

Sets the popup's requested height. May be a layout constant such as LayoutParams#WRAP_CONTENT or LayoutParams#MATCH_PARENT.

The actual size of the popup may depend on other factors such as clipping and window layout.

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

Java documentation for android.widget.PopupWindow.setHeight(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

See also