Megosztás a következőn keresztül:


ViewGroup.ShouldDelayChildPressedState Method

Definition

Return true if the pressed state should be delayed for children or descendants of this ViewGroup.

[Android.Runtime.Register("shouldDelayChildPressedState", "()Z", "GetShouldDelayChildPressedStateHandler")]
public virtual bool ShouldDelayChildPressedState ();
[<Android.Runtime.Register("shouldDelayChildPressedState", "()Z", "GetShouldDelayChildPressedStateHandler")>]
abstract member ShouldDelayChildPressedState : unit -> bool
override this.ShouldDelayChildPressedState : unit -> bool

Returns

Attributes

Remarks

Return true if the pressed state should be delayed for children or descendants of this ViewGroup. Generally, this should be done for containers that can scroll, such as a List. This prevents the pressed state from appearing when the user is actually trying to scroll the content.

The default implementation returns true for compatibility reasons. Subclasses that do not scroll should generally override this method and return false.

Java documentation for android.view.ViewGroup.shouldDelayChildPressedState().

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