Custom preference UI without preference activity android -


this question has been asked may times, still no convincing answer. have 1 activity loads different fragments, don't want create preference activity replace 1 activity. possible create own ui , save preferences within fragment without using preference activity?

absolutely, preferenceactivity convenience automate working shared prefs changed user actions. there nothing stopping from, let's say, creating check box element , obtaining sharedpreferences object using current context, , editing prefs.

also, if have 1 activity switching between fragments, can take advantage of preferencefragment


Comments