title: Android: How to navigate back from preference subscreen via action bar in xml?
body: <p>I have a modern <code>SettingsActivity</code> using <code>PreferenceFragement</code>. I defined its layout completely in XML. In my setting I have a preference subscreen. By clicking on it a new <code>PreferenceScreen</code> is shown.</p>
  
  <p>As it seems I can only navigate back to the main settings screen by using the back button. Is there a way to enable navigation via <code>ActionBar</code> in the subscreen? I'd prefer enabling it via XML.</p>
  
  <p>Thanks in advance,
  kaolick</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I want the same on the right side like on the left side:</p>
  
  <p><img src="https://i.stack.imgur.com/lifL3.png" alt="enter image description here"></p>
  
  <p>Here is the according code snippet from Google:</p>
  
  <pre><code>&lt;PreferenceScreen  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;!-- opens a subscreen of settings --&gt;
      &lt;PreferenceScreen
          android:key="button_voicemail_category_key"
          android:title="@string/voicemail"
          android:persistent="false"&gt;
          &lt;ListPreference
              android:key="button_voicemail_provider_key"
              android:title="@string/voicemail_provider" ... /&gt;
          &lt;!-- opens another nested subscreen --&gt;
          &lt;PreferenceScreen
              android:key="button_voicemail_setting_key"
              android:title="@string/voicemail_settings"
              android:persistent="false"&gt;
              ...
          &lt;/PreferenceScreen&gt;
          &lt;RingtonePreference
              android:key="button_voicemail_ringtone_key"
              android:title="@string/voicemail_ringtone_title"
              android:ringtoneType="notification" ... /&gt;
          ...
      &lt;/PreferenceScreen&gt;
      ...
  &lt;/PreferenceScreen&gt;
  </code></pre>