Most visited

Recently visited

Added in API level 11

PreferenceFragment.OnPreferenceStartFragmentCallback

public static interface PreferenceFragment.OnPreferenceStartFragmentCallback

android.preference.PreferenceFragment.OnPreferenceStartFragmentCallback
Known Indirect Subclasses


PreferenceFragment包含的活动应该实现的接口,以便能够处理希望切换到新片段的首选项。

Summary

Public methods

abstract boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref)

当用户点击一个具有与其关联的片段类名的首选项时调用。

Public methods

onPreferenceStartFragment

Added in API level 11
boolean onPreferenceStartFragment (PreferenceFragment caller, 
                Preference pref)

当用户点击一个具有与其关联的片段类名的首选项时调用。 实现应该实例化并切换到给定片段的实例。

Parameters
caller PreferenceFragment
pref Preference
Returns
boolean

Hooray!