Add titlebar into PreferenceActivity If your want to custom PreferenceActivity, like add title bar, you can follow some step:
- Create custom layout.
- First, add the addPreferencesFromResource(R.xml.preference_setting) to init the preference choices.
- Then, add setContentView(R.layout.preferences_layout) to override original layout style.