A tiny pin to reduce boilerplate codes in PreferenceFragment by using field and method binding.
- Remove 'findPreference' by using @BindPref.
- Remove 'setOnPreferenceClickListener' by using @OnPrefClick.
- Remove 'setOnPreferenceChangeListener' by using @OnPrefChange.
from The Android Arsenal
No comments:
Post a Comment