How to add Toolbar in PreferenceActivity
问题 I have created an app settings with Preferences. But I noticed, that there no toolbar in my PreferenceActivity. How I can add toolbar to my PreferenceActivity? My code: my pref_xml: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <ListPreference android:key="select_class" android:title="@string/select_class" android:defaultValue="0" android:entries="@array/classy" android:entryValues="@array/classy" android:dialogTitle="