Interview Questions

You can use the following questions as a guide to consolidate your understanding of this chapter:

  1. How many resource types can you name?
  2. What is R.java?
  3. Why is R.java such a convenience for working with resources?
  4. What is the connection between resource-reference syntax and allocating IDs for UI controls?
  5. Is a file extension used in generating a resource ID?
  6. What happens if two file-based resources differ only in their extension?
  7. What are raw and XML resources, and how do they differ from assets?
  8. Can you localize XML resources?
  9. Can you localize assets?
  10. Can you write down and explain resource-reference syntax?
  11. Can you predeclare IDs for controls? If so, why?
  12. What XML node is used to create an ID?
  13. 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.