Most visited

Recently visited

PreferenceFragment.OnPreferenceStartFragmentCallback

public static interface PreferenceFragment.OnPreferenceStartFragmentCallback

android.support.v14.preference.PreferenceFragment.OnPreferenceStartFragmentCallback
Known Indirect Subclasses


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

Summary

Public methods

abstract boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref)

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

Public methods

onPreferenceStartFragment

boolean onPreferenceStartFragment (PreferenceFragment caller, 
                Preference pref)

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

Parameters
caller PreferenceFragment: The fragment requesting navigation.
pref Preference: The preference requesting the fragment.
Returns
boolean true if the fragment creation has been handled

Hooray!