如何在android中设置自定义选项面板?

时间:2010-01-25 09:22:12

标签: android

如何在android中设置自定义选项面板?

1 个答案:

答案 0 :(得分:1)

Android应用中的设置为stored using Preferences。除了获取和设置首选项的方法外,API还提供了widgets for building your options panel

此类选项面板通常创建为PreferenceActivity。如果您查看SDK提供的API Demo sample application,可以找到how to populate a PreferenceActivity from an XML filehow to populate a PreferenceActivity using Java code的示例。