共用方式為


PopupWindow.TouchModal Property

Definition

Indicates whether outside touches will be sent to this window or other windows behind it<p/> -or- Set whether this window is touch modal or if outside touches will be sent to other windows behind it.

public virtual bool TouchModal { [Android.Runtime.Register("isTouchModal", "()Z", "GetIsTouchModalHandler", ApiSince=29)] get; [Android.Runtime.Register("setTouchModal", "(Z)V", "GetSetTouchModal_ZHandler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("isTouchModal", "()Z", "GetIsTouchModalHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setTouchModal", "(Z)V", "GetSetTouchModal_ZHandler", ApiSince=29)>]
member this.TouchModal : bool with get, set

Property Value

true if touches will be sent to this window, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether outside touches will be sent to this window or other windows behind it<p/>

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

Property setter documentation:

Set whether this window is touch modal or if outside touches will be sent to other windows behind it.<p/>

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.setTouchModal(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