I have a SherlockPreferenceActivity that uses addPreferencesFromResource to load data from preferences.xml file. Inside xml, I have a PreferenceScreen with another nested PreferenceScreen (which in turn has several sub-Preferences):
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
android:summary="@string/part1_description"
android:title="@string/part1_title" >
<Preference
android:summary="@string/chapter1_description"
android:title="@string/chapter1_title" >
</Preference>
<Preference
android:summary="@string/chapter2_description"
android:title="@string/chapter2_title" >
</Preference>
</PreferenceScreen>
<PreferenceScreen
android:summary="@string/part2_description"
android:title="@string/part2_title" >
<Preference
android:summary="@string/chapter3_description"
android:title="@string/chapter3_title" >
</Preference>
<Preference
android:summary="@string/chapter4_description"
android:title="@string/chapter4_title" >
</Preference>
</PreferenceScreen>
...
</PreferenceScreen>
Parent Activity with PreferenceScreen (listing Parts) is showing action bar perfectly, but when I go to any of the nested PreferenceScreen classes (which consequently open a new internal Activity with appropriate Chapters), action bar disappears. I guess that this problem can be solved by creating additional Activity for sub-PreferenceScreen class (using intents), but just wondering, is there any other better solution?
Thanks in advance.