Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Compatibility PreferenceFragment on Android

My android application is using the compatibility library quite heavily (Loaders in particular). I need to be able to use compatibility components everywhere, including my PreferenceActivity. Sadly, the support library does not include a fragment-based PreferenceActivity, nor the PreferenceFragment class.

I'm toying with the idea of making my own PreferenceFragmentActivity and CompatPreferenceFragment (basically what Google neglected to do). Others, including some on StackOverflow, have mentioned accomplishing this exact thing, so I am openly asking for help of any kind -- guidance, tips, suggestions, code samples (if you are willing and able to share), or whatever else you deem relevant to this problem.

If someone can also direct me to the site where people file feature requests for Android, I'd like to add my name to the list of folks who want Google to address this in a future release of the support library.

like image 654
Karakuri Avatar asked May 30 '12 22:05

Karakuri


1 Answers

Look at Fr4gg0r's implementation of PreferenceFragment using reflex at http://forum.xda-developers.com/showthread.php?t=1363906

like image 176
Vladimir Dmi Avatar answered Sep 18 '22 03:09

Vladimir Dmi