Udostępnij za pośrednictwem


ViewGroup.SetClipToPadding(Boolean) Method

Definition

Sets whether this ViewGroup will clip its children to its padding and resize (but not clip) any EdgeEffect to the padded region, if padding is present.

[Android.Runtime.Register("setClipToPadding", "(Z)V", "GetSetClipToPadding_ZHandler")]
public virtual void SetClipToPadding (bool clipToPadding);
[<Android.Runtime.Register("setClipToPadding", "(Z)V", "GetSetClipToPadding_ZHandler")>]
abstract member SetClipToPadding : bool -> unit
override this.SetClipToPadding : bool -> unit

Parameters

clipToPadding
Boolean

true to clip children to the padding of the group, and resize (but not clip) any EdgeEffect to the padded region. False otherwise.

Attributes

Remarks

Sets whether this ViewGroup will clip its children to its padding and resize (but not clip) any EdgeEffect to the padded region, if padding is present.

By default, children are clipped to the padding of their parent ViewGroup. This clipping behavior is only enabled if padding is non-zero.

Java documentation for android.view.ViewGroup.setClipToPadding(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