Quantcast
Viewing all articles
Browse latest Browse all 8068

openPreferences HomeAsUp?

My Preferences Screens was not showing with a UP arrow in action bar. I managed to get it to show the UP arrow on the theme as:

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="LightDarkBar" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
    </style>
    <style name="Light" parent="Theme.AppCompat.Light">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
    </style>
    <style name="Dark" parent="Theme.AppCompat">
        <item name="android:actionBarStyle">@style/MyActionBar</item>
    </style>
    <style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
        <item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
    </style>
</resources>
Now I have the UP arrow on the Preferences Screen but it does not work, it is an arrow that does nothing.

How can I make it close the Preferences Intent and come back to the previews windows?


Viewing all articles
Browse latest Browse all 8068

Trending Articles