A (175)

(Tuis.) #1
CHAPTER 4: Introduction to XML: Defining an Android App, Its Design, and Constants 111

We are not going to completely cover styles and themes in this chapter, as that more advanced
subject matter is better suited for the UI design chapters, but I am going to show you how the styles.
xml files fit into your overall app structure and how to change the OS primary theme, so you can
make your application “light” (white and light gray) or “dark” (black and dark gray).


Let’s right-click on the styles.xml file in the /res/values folder, and select the Open option from the
context-sensitive menu, or left-click and hit the F3 key, and then we can take a look at the styles.xml
file in the central editing pane of Eclipse, as is shown in Figure 4-5.


Figure 4-5. The default styles.xml file, located in the /res/values folder, with two