PrefererenceFragment Material Theme with Support Library

168 views Asked by At

I've adopted the Material design in my app using appcompat v22. Everything worked well and the theme is applied, but the PreferenceFragments still look like the native Android's theme and not like Material.

As I'm forced to support all the way down to API level 10 I use this backport.

Is there any way to make the PreferenceFragment apply the AppCompat theme?

Thanks in advance!

1

There are 1 answers

1
Gabriele Mariotti On

With the new 22.1+ appcompat you can use the AppCompatDelegate to extend AppCompat's support to any Activity.

You can check this official link to AppCompatPreferenceActivity, where you can find an example of this technique.