How to use the v7/v14 Preference Support library?
问题 Together with the M release, there are new support libraries. One of them that seems to be very useful is the v7 Preference Support library. It does not seem to have PreferenceActivity or something similar, how do we integrate it to our app? 回答1: You have to extend AppCompatActivity , which is required for fragment, and include a subclass of PreferenceFragmentCompat. The abstract fragment requires to override one method, in which you should place your preference inflation logic. And last,