Preference.RecycleEnabled Property

Definition

Checks whether this Preference has enabled to have its view recycled when used in the list view. -or- Sets whether this Preference has enabled to have its view recycled when used in the list view.

public virtual bool RecycleEnabled { [Android.Runtime.Register("isRecycleEnabled", "()Z", "GetIsRecycleEnabledHandler", ApiSince=26)] get; [Android.Runtime.Register("setRecycleEnabled", "(Z)V", "GetSetRecycleEnabled_ZHandler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("isRecycleEnabled", "()Z", "GetIsRecycleEnabledHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setRecycleEnabled", "(Z)V", "GetSetRecycleEnabled_ZHandler", ApiSince=26)>]
member this.RecycleEnabled : bool with get, set

Property Value

true if this preference view should be recycled

Attributes

Remarks

Property getter documentation:

Checks whether this Preference has enabled to have its view recycled when used in the list view.

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

Property setter documentation:

Sets whether this Preference has enabled to have its view recycled when used in the list view. By default the recycling is enabled.

The value can be changed only before this preference is added to the preference hierarchy.

If view recycling is not allowed then each time the list view populates this preference the #getView(View, ViewGroup) method receives a null convert view and needs to recreate the view. Otherwise view gets recycled and only #onBindView(View) gets called.

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