Udostępnij za pośrednictwem


Preference.WidgetLayoutResource Property

Definition

Gets the layout resource for the controllable widget portion of this Preference. -or- Sets the layout for the controllable widget portion of this Preference.

public virtual int WidgetLayoutResource { [Android.Runtime.Register("getWidgetLayoutResource", "()I", "GetGetWidgetLayoutResourceHandler")] get; [Android.Runtime.Register("setWidgetLayoutResource", "(I)V", "GetSetWidgetLayoutResource_IHandler")] set; }
[<get: Android.Runtime.Register("getWidgetLayoutResource", "()I", "GetGetWidgetLayoutResourceHandler")>]
[<set: Android.Runtime.Register("setWidgetLayoutResource", "(I)V", "GetSetWidgetLayoutResource_IHandler")>]
member this.WidgetLayoutResource : int with get, set

Property Value

The layout resource ID.

Attributes

Remarks

Property getter documentation:

Gets the layout resource for the controllable widget portion of this Preference.

Java documentation for android.preference.Preference.getWidgetLayoutResource().

Property setter documentation:

Sets the layout for the controllable widget portion of this Preference. This is inflated into the main layout. For example, a CheckBoxPreference would specify a custom layout (consisting of just the CheckBox) here, instead of creating its own main layout.

Java documentation for android.preference.Preference.setWidgetLayoutResource(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

See also