PreferenceActivity and theme not applying

后端 未结 5 1536
不思量自难忘°
不思量自难忘° 2020-12-14 16:25

Hi all I have set the theme in the manifest file like this:

android:theme=\"@android:style/Theme.Light\"

But I have a problem in the Prefer

5条回答
  •  独厮守ぢ
    2020-12-14 17:17

    Somebody just posted a workaround at http://code.google.com/p/android/issues/detail?id=4611

    In a nutshell, top level preference screens seem to recognize the theme but nested ones not. So the workaround recommends creating top level PreferenceActivity for nested PreferenceScreen and then invoking this new activity via intent:

    
            
    
    

    I didn't have to apply the theme to anything but the application itself.

提交回复
热议问题