I\'ve come to a sudden halt in the development of my app as I realized that PreferenceFragments weren\'t supported in this library. Are there any alternatives that a rookie
Preferences Support Library: Preference Fragments for API 7+, no matter the Activity
A simple implementation would include a PreferenceFragmentCompat such as:
public class PreferencesFragment extends PreferenceFragmentCompat {
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
addPreferencesFromResource(R.xml.preferences);
}
}
You’ll also need to set preferenceTheme in your theme:
And add this in dependencies: http://developer.android.com/tools/support-library/features.html
com.android.support:preference-v14:23.1.0