how to set the custom options pane开发者_JAVA百科l in android?
Settings in Android applications are stored using Preferences
. As well as ways to get and set Preferences, the API also provides widgets for building your options panel.
Such an options panel is normally created as a PreferenceActivity
. If you have a look at the API Demo sample application provided with the SDK you can find an example of how to populate a PreferenceActivity
from an XML file and how to populate a PreferenceActivity
using Java code.
精彩评论