Skip to content

jclemus91/TestingAndroidxPreferences

 
 

Repository files navigation

TestingAndroidxPreferences

example for creating custom preferences using AndroidX libraries, created to custom preferences based on androidx.preference.DialogPreference:

  1. after looking at the implementation here: https://github.com/h6ah4i/android-numberpickerprefcompat made my adjustments and created my NumberPickerPreference (in mine there is no unit textVies, and you can set the wheel fanctionality), added saving preference to sharedPreference file, for next run
  2. used what I learned to create a custom preference that used autoCompleteTextView

for both preferences you create to classes: one that extends DialogPreference, and another that extends PreferenceDialogFragmentCompat

doesn't work when you rotate the screen... canceled that option

ezgif com-resize (3)

About

example for creating custom preferences in androidx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%