asked 60.6k views
1 vote
What directory is used to store the XML for a preferences screen?

asked
User Ilinca
by
8.0k points

1 Answer

5 votes

Final answer:

When creating a preferences screen for an Android application, the XML files are stored in the res/xml/ directory. These files contain the PreferenceScreen tag and the individual preference items.

Step-by-step explanation:

The directory used to store the XML for a preferences screen in an Android application is the res/xml/ directory. Preferences screens are typically defined through XML files within this directory. These XML files contain the definitions for the various preferences that will be displayed in the preferences screen. To create a new preferences screen, you would create a new XML file in this directory and define the PreferenceScreen tag along with its corresponding preference items inside.

answered
User Gunty
by
8.1k points