共用方式為


ViewGroup.DescendantFocusability Property

Definition

Gets the descendant focusability of this view group. -or- Set the descendant focusability of this view group.

public virtual Android.Views.DescendantFocusability DescendantFocusability { [Android.Runtime.Register("getDescendantFocusability", "()I", "GetGetDescendantFocusabilityHandler")] get; [Android.Runtime.Register("setDescendantFocusability", "(I)V", "GetSetDescendantFocusability_IHandler")] set; }
[<get: Android.Runtime.Register("getDescendantFocusability", "()I", "GetGetDescendantFocusabilityHandler")>]
[<set: Android.Runtime.Register("setDescendantFocusability", "(I)V", "GetSetDescendantFocusability_IHandler")>]
member this.DescendantFocusability : Android.Views.DescendantFocusability with get, set

Property Value

one of #FOCUS_BEFORE_DESCENDANTS, #FOCUS_AFTER_DESCENDANTS, #FOCUS_BLOCK_DESCENDANTS.

Attributes

Remarks

Property getter documentation:

Gets the descendant focusability of this view group. The descendant focusability defines the relationship between this view group and its descendants when looking for a view to take focus in #requestFocus(int, android.graphics.Rect).

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

Property setter documentation:

Set the descendant focusability of this view group. This defines the relationship between this view group and its descendants when looking for a view to take focus in #requestFocus(int, android.graphics.Rect).

Java documentation for android.view.ViewGroup.setDescendantFocusability(int).

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