Preferential practices for preferences
summary
Shows how the AndroidX Preference library (back to API 14) replaces the framework version for a consistent Material theme and regular updates, and demonstrates building XML-based settings with PreferenceFragmentCompat plus fragment links for multi-screen flows. Highlights concrete features: Dynamic Summaries via SummaryProvider and the android:useSimpleSummaryProvider flag, SwitchPreferenceCompat dependencies that gray out controls, EditTextPreference dialogs, and persistence through SharedPreferences. The examples are runnable: summaries update and values persist as expected.
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:35What are preferences
- 1:01The two forms of preferences
- 1:56Shared preferences
- 2:32Hierarchy
- 3:03Activity
- 3:26Root
- 3:42Basic
- 4:15Switch
- 5:25Preference Categories
- 5:45Edit Text Preference
- 6:10Summary Preference
- 6:58Dependency
- 9:07Separate screens
- 9:53A hierarchy
- 10:13A final link
- 10:54Basic preferences
- 12:17Wrapup
related talks
43mCustomizing Theme and Style for Material Design
49mThemes, styles & more: from zero to hero
33mUnderstanding Android Themes
44mMaterial You Review
49mThemes, styles & more: from zero to hero
35mSupport Library: Guts and Glory
58mMaterial You Review
12mDesigning a high quality app with the latest Android features
