Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 503ac1f May 8, 2019

AndroidX Preference Library Sample

The goal of this sample is to demonstrate various functionality present in the AndroidX Preference Library. For more information on how to use the AndroidX Preference Library to build settings screens, see Settings.

Note: The framework API (android.preference.*) is deprecated as of Q, and the AndroidX library should be used instead.


  • Android Studio 3.x

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.


For feature requests or bug reports for the AndroidX Preference Library, file an issue here

For more information on the AndroidX Preference Library, see the reference documentation

If you've found an error in this sample, please file an issue here

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see for more details.


Copyright 2018 The Android Open Source Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.