補充一下安卓官方的建議:
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實現設置界面前言 我們在進行Android開發的過程中,有時需要實現一個設置界面,就像下面的系統的顯示設置。這樣的界面自己實現起來略顯繁瑣,好在Android中已經實現了這樣的設置界面,...