Preference getFragment - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Preference getFragment method.

This code example shows how to use the following methods:getExtras, getFragment, getTitleRes
    } 
 
    @Override 
    public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) {
        // Override the fragment title for Wallpaper settings 
        int titleRes = pref.getTitleRes();
 
        startPreferencePanel(pref.getFragment(), pref.getExtras(), titleRes, null, null, 0);
        return true; 
    } 
 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getFragment, getTitleRes
    } 
 
    @Override 
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
        if (preference == mStatusIcons) {
            startPreferencePanel(mStatusIcons.getFragment(),
                    null, mStatusIcons.getTitleRes(), null, null, -1);
            return true; 
        } 
        return false; 
    } 
 
    public static class StatusIcons extends StatusbarIcons { } 
 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getExtras, getFragment, getTitleRes
    } 
 
    @Override 
    public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) {
        // Override the fragment title for Wallpaper settings 
        int titleRes = pref.getTitleRes();
 
        startPreferencePanel(pref.getFragment(), pref.getExtras(), titleRes, null, null, 0);
        return true; 
    } 
 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
getFragment Method Overview
Return the fragment class name associated with this Preference.
See Code Examples for other Android Preference Methods: