補充一下安卓官方的建議:
If you're developing for Android 3.0 (API level 11) and higher, you should use a PreferenceFragment to display your list of Preference objects. You can add a PreferenceFragment to any activity—you don't need to use PreferenceActivity.
https://developer.android.com/guide/topics/ui/settings.html#Fragment
Android學習筆記1 PreferenceActivity和PreferenceFragment實現(xiàn)設(shè)置界面前言 我們在進行Android開發(fā)的過程中,有時需要實現(xiàn)一個設(shè)置界面,就像下面的系統(tǒng)的顯示設(shè)置。這樣的界面自己實現(xiàn)起來略顯繁瑣,好在Android中已經(jīng)實現(xiàn)了這樣的設(shè)置界面,...