Compartilhar via


ViewGroup.SetAddStatesFromChildren(Boolean) Method

Definition

Sets whether this ViewGroup's drawable states also include its children's drawable states.

[Android.Runtime.Register("setAddStatesFromChildren", "(Z)V", "GetSetAddStatesFromChildren_ZHandler")]
public virtual void SetAddStatesFromChildren (bool addsStates);
[<Android.Runtime.Register("setAddStatesFromChildren", "(Z)V", "GetSetAddStatesFromChildren_ZHandler")>]
abstract member SetAddStatesFromChildren : bool -> unit
override this.SetAddStatesFromChildren : bool -> unit

Parameters

addsStates
Boolean
Attributes

Remarks

Sets whether this ViewGroup's drawable states also include its children's drawable states. This is used, for example, to make a group appear to be focused when its child EditText or button is focused.

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