Aracılığıyla paylaş


Preference.LayoutResource Property

Definition

Gets the layout resource that will be shown as the View for this Preference. -or- Sets the layout resource that is inflated as the View to be shown for this Preference.

public virtual int LayoutResource { [Android.Runtime.Register("getLayoutResource", "()I", "GetGetLayoutResourceHandler")] get; [Android.Runtime.Register("setLayoutResource", "(I)V", "GetSetLayoutResource_IHandler")] set; }
[<get: Android.Runtime.Register("getLayoutResource", "()I", "GetGetLayoutResourceHandler")>]
[<set: Android.Runtime.Register("setLayoutResource", "(I)V", "GetSetLayoutResource_IHandler")>]
member this.LayoutResource : int with get, set

Property Value

The layout resource ID.

Attributes

Remarks

Property getter documentation:

Gets the layout resource that will be shown as the View for this Preference.

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

Property setter documentation:

Sets the layout resource that is inflated as the View to be shown for this Preference. In most cases, the default layout is sufficient for custom Preference objects and only the widget layout needs to be changed.

This layout should contain a ViewGroup with ID android.R.id#widget_frame to be the parent of the specific widget for this Preference. It should similarly contain android.R.id#title and android.R.id#summary.

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