Interview Questions
You can use the following questions as a guide to consolidate your understanding of this chapter:
- How many resource types can you name?
- What is
R.java
? - Why is
R.java
such a convenience for working with resources? - What is the connection between resource-reference syntax and allocating IDs for UI controls?
- Is a file extension used in generating a resource ID?
- What happens if two file-based resources differ only in their extension?
- What are raw and XML resources, and how do they differ from assets?
- Can you localize XML resources?
- Can you localize assets?
- Can you write down and explain resource-reference syntax?
- Can you predeclare IDs for controls? If so, why?
- What XML node is used to create an ID?
- If you place files in XML and ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.