PreferenceScreen.RootAdapter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an adapter that can be attached to a PreferenceActivity
or PreferenceFragment
to show the preferences contained in this
PreferenceScreen
.
public Android.Widget.IListAdapter? RootAdapter { [Android.Runtime.Register("getRootAdapter", "()Landroid/widget/ListAdapter;", "")] get; }
[<get: Android.Runtime.Register("getRootAdapter", "()Landroid/widget/ListAdapter;", "")>]
member this.RootAdapter : Android.Widget.IListAdapter
Property Value
An adapter that provides the Preference
contained in this
PreferenceScreen
.
- Attributes
Remarks
Returns an adapter that can be attached to a PreferenceActivity
or PreferenceFragment
to show the preferences contained in this PreferenceScreen
.
This PreferenceScreen
will NOT appear in the returned adapter, instead it appears in the hierarchy above this PreferenceScreen
.
This adapter's Adapter#getItem(int)
should always return a subclass of Preference
.
Java documentation for android.preference.PreferenceScreen.getRootAdapter()
.
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.