Android app dev: Add ActionBar to Preference Activity
Android app dev: Add ActionBar to Preference Activity
When I converted an activity into PreferenceActivity, I noticed that its ActionBar disappeared. I’ll show you how I brought the ActionBar back to my PreferenceActivity.
In this guide I will assume that the name of the file that contains your is SettingsActivity.java, and that the view assigned to your SettingsActivity.java is named .
First, create settings_toolbar.xml under /app/src/main/res/layo…
View On WordPress















