且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获得preferenceManager德precated

更新时间:2023-12-02 16:32:10

从的为preferenceActivity文档

要蜂窝状这个类只允许单套preference的显示在此之前,这个功能现在应该在新的preferenceFragment类中找到。如果你正在使用preferenceActivity在旧模式下,文件也适用于德$ P $这里pcated的API。

Prior to HONEYCOMB this class only allowed the display of a single set of preference; this functionality should now be found in the new PreferenceFragment class. If you are using PreferenceActivity in its old mode, the documentation there applies to the deprecated APIs here.

所以,你可以切换到使用片段或者你可以忽略这些警告。 (记者了解到,德precated方法将从API有一天消失......)

So you can either switch to using Fragments or you can ignore these warnings. (Understand that deprecated methods will disappear from the API someday...)

可有人点code的使用LiveWallpaper preferenceFragments当代的例子吗?

Can someone point to a contemporary example of code for LiveWallpaper using PreferenceFragments?

有没有preferenceActivities和preferenceFragments使用的方法之间的主要区别,一般来说切换到片段是大的变化。但 preferenceFragment 有一个例子,你看,你仍然可以使用像添加方法preferencesFromResource()在它的现代形式。

There isn't a major difference between the methods used in PreferenceActivities and PreferenceFragments, switching to Fragments in general is the big change. But PreferenceFragment has an example and you see you can still use methods like addPreferencesFromResource() in it's modern form.