Share via


PopupWindow.Focusable Property

Definition

Indicate whether the popup window can grab the focus. -or- Changes the focusability of the popup window.

public virtual bool Focusable { [Android.Runtime.Register("isFocusable", "()Z", "GetIsFocusableHandler")] get; [Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")] set; }
[<get: Android.Runtime.Register("isFocusable", "()Z", "GetIsFocusableHandler")>]
[<set: Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")>]
member this.Focusable : bool with get, set

Property Value

true if the popup is focusable, false otherwise

Attributes

Remarks

Property getter documentation:

Indicate whether the popup window can grab the focus.

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

Property setter documentation:

Changes the focusability of the popup window. When focusable, the window will grab the focus from the current focused widget if the popup contains a focusable android.view.View. By default a popup window is not focusable.

If the popup is showing, calling this method will take effect only the next time the popup is shown or through a manual call to one of the #update() methods.

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

See also