Skip to content
Project files of my tutorial series
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Used the right methods according to the docs Aug 24, 2016
gradle/wrapper Added custom layout for PreferenceFragment. Aug 22, 2016
.gitignore Initial commit Jul 5, 2016
README.md Update README.md Aug 22, 2016
build.gradle Added custom layout for PreferenceFragment. Aug 22, 2016
gradle.properties Initial commit Jul 5, 2016
gradlew Initial commit Jul 5, 2016
gradlew.bat Initial commit Jul 5, 2016
settings.gradle Initial commit Jul 5, 2016

README.md

Preferences Demo

The project files of my tutorial series Building an Android Settings Screen - Fixing and Extending the android.support.v7.preference Library on Medium.

Part 1: How to Create and Fix the Overview Screen

Part 2: How to Create and Fix the Dialogs

Part 3: How to Create Custom Preferences

Part 4: How to Use a Custom Layout for the Preference Fragment

Note 1: Google messed up the paddings of the list items with the v24.0.0 version of the support library (on devices below API 21).

Note 2: Google changed the required id for custom layouts for PreferenceFragmentCompat in the update from revision 23.4.0 (R.id.list_container) to 24.0.0 (android.R.id.list_container). Android Studio says that the new id requires API 24, but it also works on older APIs.

You can’t perform that action at this time.