Android examples for User Interface:PreferenceFragment
get Preference from PreferenceFragment
//package com.java2s; import android.preference.PreferenceFragment; public class Main { public static <T> T getPreference(PreferenceFragment fragment, CharSequence key) {//from w w w. j a va2 s .co m return (T) fragment.getPreferenceScreen().findPreference(key); } }