I need to add a button into a Preference Fragment Layout. I can succesfully get the button in the Preferences layout, but I cannot capture the event of it being clicked.
all other preferences are captured in the onSharedPreferenceChanged Callback, but the button click is not.
What is the best way to add a callback to the button, or have it return it's value in the onSharedPreferenceChanged callback?
I've tried almost all examples I could find on Stackoverflow, but most are designed with a preferenceActivity in mind, not a fragment.
One solution I tried did fire a callback event, but only when that callback was in the host Activity!
Fragment specific help on this appreciated.