Customizing UI Settings Using the AndroidX Preference Library
Android settings allow users to change the functionality and behavior of an application. This course will teach you to leverage the power of the AndroidX Preference library to build consistent settings UIs that conform to Android design guidelines.
What you'll learn
At the core of any professional app is a thorough understanding of how to use the AndroidX Preference library to build settings screens for an enhanced user experience. In this course, Customizing UI Settings Using the AndroidX Preference Library, you’ll see how to use the Preference library to design a settings screen using underlying default SharedPreferences and PreferenceDataStore. First, you'll explore the AndroidX Preference library and use it to build a settings screen that conforms to Android design guidelines and provides a consistent user experience. Next, you'll discover how you can access the Preference objects and read values from the underlying default SharedPreferences and PreferenceDataStore. Finally, you'll learn how to implement various listener interfaces to keep track of any updates in the Preference objects. When you’re finished with this course, you'll have a foundational knowledge of using the Preference library to build robust settings UIs for modern Android applications.
Table of contents
- Overview 1m
- Accessing a Preference Object in a Fragment or Activity 3m
- Opening a Fragment from the Settings Screen 5m
- Opening an Activity from the Settings Screen 1m
- Reading Preference Values 4m
- Using the OnPreferenceChangeListener Interface 6m
- Using the OnSharedPreferenceChangeListener Interface 7m
- OnPreferenceChangeListener vs. OnSharedPreferenceChangeListener 2m
- Summary and Up Next 3m