Compartilhar via


Preference.Fragment Property

Definition

Return the fragment class name associated with this Preference. -or- Sets the class name of a fragment to be shown when this Preference is clicked.

public virtual string? Fragment { [Android.Runtime.Register("getFragment", "()Ljava/lang/String;", "GetGetFragmentHandler")] get; [Android.Runtime.Register("setFragment", "(Ljava/lang/String;)V", "GetSetFragment_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getFragment", "()Ljava/lang/String;", "GetGetFragmentHandler")>]
[<set: Android.Runtime.Register("setFragment", "(Ljava/lang/String;)V", "GetSetFragment_Ljava_lang_String_Handler")>]
member this.Fragment : string with get, set

Property Value

The fragment class name last set via #setFragment or XML.

Attributes

Remarks

Property getter documentation:

Return the fragment class name associated with this Preference.

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

Property setter documentation:

Sets the class name of a fragment to be shown when this Preference is clicked.

Java documentation for android.preference.Preference.setFragment(java.lang.String).

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