ModernAndroidPreferences

Android Preferences defined through Kotlin DSL, shown in a RecyclerView

APACHE-2.0 License

Stars
117

Bot releases are visible (Hide)

ModernAndroidPreferences - Release 0.5.10

Published by Maxr1998 over 4 years ago

Fixes

  • Fix equals and hashCode for PreferenceScreen, which resulted in potentially wrong animations earlier
ModernAndroidPreferences - Release 0.5.9

Published by Maxr1998 over 4 years ago

  • PreferenceAdapter now has stable ids to support animations*

* Since notifyDataSetChanged() is used inside the adapter, it's necessary to call RecylcerView.scheduleLayoutAnimation() after changing screens, e.g. via an OnScreenChangeListener.

ModernAndroidPreferences - Release 0.5.8

Published by Maxr1998 over 4 years ago

New features

  • Support setting an independent summary for when the preference is disabled

Fixes

  • summaryOn for TwoStatePreference now is a CharSequence instead of a String, to also support Spannables - this was an oversight in 0.5.3.

Other

  • Some small code tweaks like rewritten summary resolving for preferences
ModernAndroidPreferences - Release 0.5.7

Published by Maxr1998 over 4 years ago

Fixes

  • Fix dependency handling for preferences - previously, they didn't work across multiple screens
ModernAndroidPreferences - Release 0.5.6

Published by Maxr1998 over 4 years ago

Fixes

  • Fix Preference.getBoolean() not returning the default value for non-persistent preferences
ModernAndroidPreferences - Release 0.5.5

Published by Maxr1998 over 4 years ago

New features

  • SeekBarPreference now also supports negative values

Fixes

  • Fix PreferenceScreen not showing badges
  • Fix multiple issues with the SeekbarPreference - please report back if you're still facing any bugs
ModernAndroidPreferences - Release 0.5.4

Published by Maxr1998 over 4 years ago

Fixes

  • Quick fix for a long-existing issue when setting text to an ExpandableTextPreference directly (and not through a resource).
ModernAndroidPreferences - Release 0.5.3

Published by Maxr1998 over 4 years ago

New features

  • Text attributes like title, summary and text (for ExpandableTextPreference) now use CharSequence instead of String, to also support Spannables.
ModernAndroidPreferences - Release 0.5.2

Published by Maxr1998 over 4 years ago

New features

  • Add possibility to specify if preference should be shown inside a collapse summary

Fixes

  • It wasn't possible to set attributes (like title or summary) on collapse preference - see 7297693d29f2c26124ee53160f7bb3fc05afd0fc
  • Summaries supplied as a string resource were overridden by the auto-generated one - this is fixed now
ModernAndroidPreferences - Release 0.5.1

Published by Maxr1998 over 4 years ago

Fixes

  • The reflection used to enable the tick marks from the AppCompatSeekBar could break apps if they are using ProGuard, this has been fixed by implementing tick mark support inside the custom SeekBar itself - see b1310c38c5fab2aa50806035d25ad3a752bb3598
  • Icon position for SeekBars has been fixed
ModernAndroidPreferences - Release 0.5

Published by Maxr1998 over 4 years ago

New features

  • SeekBar improvements
    • specify default value, which will be indicated on the slider
    • add support for showing tick marks at every step
  • Support for badges on preferences - see badefbc7605ca27237ac0b2389abefc42aa53741
  • parent attribute on preferences to get the screen it's currently attached to
  • hasParent checks if the preference has a parent screen with the given key anyway in the hierarchy

Behavior changes

  • Library now targets API 29/Android 10
  • PreferenceScreens can now have keys - see 5c92d758b29fbe05e325a4d660ebd493dd740875
  • Library is now explicitly using the AppCompat versions of most widgets, like CheckBoxes, SeekBars, and Switches

Other

  • Lots of refactoring, layout fixes (e.g. tweaked widget margins)
  • Converted part of the build scripts to Gradle Kotlin DSL

Thanks to @8bitPit for the help with ConstraintLayout in this release!

ModernAndroidPreferences - Release 0.4.3

Published by Maxr1998 over 4 years ago

ModernAndroidPreferences - Release 0.4.2

Published by Maxr1998 almost 5 years ago

ModernAndroidPreferences - Release 0.4.1

Published by Maxr1998 almost 5 years ago

  • Support image tinting for ImagePreference
  • Documentation updates
ModernAndroidPreferences - Release 0.4

Published by Maxr1998 almost 5 years ago

  • Added ImagePreference
ModernAndroidPreferences - Release 0.3

Published by Maxr1998 over 5 years ago

ModernAndroidPreferences - Release 0.2.1

Published by Maxr1998 almost 6 years ago

ModernAndroidPreferences - Release 0.2

Published by Maxr1998 almost 6 years ago

ModernAndroidPreferences - Release 0.1.2

Published by Maxr1998 almost 6 years ago

ModernAndroidPreferences - Release 0.1.1

Published by Maxr1998 almost 6 years ago