Compartir a través de


PopupWindow.GetMaxAvailableHeight Method

Definition

Overloads

GetMaxAvailableHeight(View)

Returns the maximum height that is available for the popup to be completely shown.

GetMaxAvailableHeight(View, Int32)

Returns the maximum height that is available for the popup to be completely shown.

GetMaxAvailableHeight(View, Int32, Boolean)

Returns the maximum height that is available for the popup to be completely shown, optionally ignoring any bottom decorations such as the input method.

GetMaxAvailableHeight(View)

Returns the maximum height that is available for the popup to be completely shown.

[Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;)I", "GetGetMaxAvailableHeight_Landroid_view_View_Handler")]
public virtual int GetMaxAvailableHeight (Android.Views.View anchor);
[<Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;)I", "GetGetMaxAvailableHeight_Landroid_view_View_Handler")>]
abstract member GetMaxAvailableHeight : Android.Views.View -> int
override this.GetMaxAvailableHeight : Android.Views.View -> int

Parameters

anchor
View

The view on which the popup window must be anchored.

Returns

The maximum available height for the popup to be completely shown.

Attributes

Remarks

Returns the maximum height that is available for the popup to be completely shown. It is recommended that this height be the maximum for the popup's height, otherwise it is possible that the popup will be clipped.

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

Applies to

GetMaxAvailableHeight(View, Int32)

Returns the maximum height that is available for the popup to be completely shown.

[Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;I)I", "GetGetMaxAvailableHeight_Landroid_view_View_IHandler")]
public virtual int GetMaxAvailableHeight (Android.Views.View anchor, int yOffset);
[<Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;I)I", "GetGetMaxAvailableHeight_Landroid_view_View_IHandler")>]
abstract member GetMaxAvailableHeight : Android.Views.View * int -> int
override this.GetMaxAvailableHeight : Android.Views.View * int -> int

Parameters

anchor
View

The view on which the popup window must be anchored.

yOffset
Int32

y offset from the view's bottom edge

Returns

The maximum available height for the popup to be completely shown.

Attributes

Remarks

Returns the maximum height that is available for the popup to be completely shown. It is recommended that this height be the maximum for the popup's height, otherwise it is possible that the popup will be clipped.

Java documentation for android.widget.PopupWindow.getMaxAvailableHeight(android.view.View, 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

GetMaxAvailableHeight(View, Int32, Boolean)

Returns the maximum height that is available for the popup to be completely shown, optionally ignoring any bottom decorations such as the input method.

[Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;IZ)I", "GetGetMaxAvailableHeight_Landroid_view_View_IZHandler", ApiSince=24)]
public virtual int GetMaxAvailableHeight (Android.Views.View anchor, int yOffset, bool ignoreBottomDecorations);
[<Android.Runtime.Register("getMaxAvailableHeight", "(Landroid/view/View;IZ)I", "GetGetMaxAvailableHeight_Landroid_view_View_IZHandler", ApiSince=24)>]
abstract member GetMaxAvailableHeight : Android.Views.View * int * bool -> int
override this.GetMaxAvailableHeight : Android.Views.View * int * bool -> int

Parameters

anchor
View

The view on which the popup window must be anchored.

yOffset
Int32

y offset from the view's bottom edge

ignoreBottomDecorations
Boolean

if true, the height returned will be all the way to the bottom of the display, ignoring any bottom decorations

Returns

The maximum available height for the popup to be completely shown.

Attributes

Remarks

Returns the maximum height that is available for the popup to be completely shown, optionally ignoring any bottom decorations such as the input method. It is recommended that this height be the maximum for the popup's height, otherwise it is possible that the popup will be clipped.

Java documentation for android.widget.PopupWindow.getMaxAvailableHeight(android.view.View, int, boolean).

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