1

I'm stuck with the ThemeOverlay.AppCompat.Dark.ActionBar. I need a dark actionbar with white text.

Dark ActionBar

But that is what i get:

Wrong Dark ActionBar

I have a PreferenceActivity where i need this bar, after research i found the following solution: https://stackoverflow.com/a/27455363/1809221

I have exactly the same.

Any suggestions? Thanks in advance

Community
  • 1
  • 1
Manu Zi
  • 2,300
  • 6
  • 33
  • 67
  • Just a note, you can use a standard `AppCompatActivity` along with the newly released [Preferences Support Library](https://plus.google.com/+AndroidDevelopers/posts/9kZ3SsXdT2T) rather than using `PreferenceActivity` if that may be easier. – ianhanniballake Sep 01 '15 at 17:37
  • Hi @ianhanniballake i have switch to PreferenceFragmentCompat but how can i start it? If i would start it it says it must extends from android.app.Fragment – Manu Zi Sep 03 '15 at 14:52
  • Sounds like you are using `getFragmentManager()` rather than `getSupportFragmentManager()` - check that and your imports (it should be the v4 `FragmentTransaction` for instance). – ianhanniballake Sep 03 '15 at 16:25
  • Ok, what a stupid mistake from me. It's solved. Thank's a lot – Manu Zi Sep 03 '15 at 17:08

1 Answers1

1

Consider instead using the new Preferences Support Library along with AppCompatActivity rather than using PreferenceActivity at all.

ianhanniballake
  • 191,609
  • 30
  • 470
  • 443