One way is to use SharedPreferences directly and use your own screen design and management of the preferences.
其中一种方式是直接使用SharedPreferences,并使用您自己的屏幕设计和首选项管理。
Listing 8 shows how to use SharedPreferences to load the stored preferences and how to make changes to the stored preferences using an Editor.
清单8展示了如何使用SharedPreferences加载已存储的首选项,以及如何使用Editor更改已存储的首选项。
Recall that PreferenceActivity USES SharedPreferences to automatically store the preferences as the user interacts with the preferences screen.
回想一下,PreferenceActivity使用SharedPreferences在用户与首选项屏幕交互时自动存储首选项。
Listing 8 shows how to use SharedPreferences directly to load the stored preferences; you can refer to the companion sample code on how the loaded preferences are used throughout the sample code.
清单8展示了如何直接使用SharedPreferences来加载存储的首选项;关于加载的首选项在整个样例代码中是如何被使用的,您可以参考相应的样例代码。
Listing 8 shows how to use SharedPreferences directly to load the stored preferences; you can refer to the companion sample code on how the loaded preferences are used throughout the sample code.
清单8展示了如何直接使用SharedPreferences来加载存储的首选项;关于加载的首选项在整个样例代码中是如何被使用的,您可以参考相应的样例代码。
应用推荐