New Preference support library incorrect theme at runtime
问题 I'm trying to use the new Preference v14 Support library. To give the preferences a material style, I use the following style on my Activity: <style name="PreferenceTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar"> <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> </style> That works fine. My problem is that when I add new Preferences at runtime, they get inflated using an old theme. Here's a screenshot of the result: As you can see, the first preference