Android笔记2:应用资源

概述:

App Resources

Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.

资源是你的代码使用的附加文件和静态内容,例如bitmap,布局定义,用户界面字符串,动画说明等等。

You should always maintain these resources independent from your source code and provide alternative resources to support specific device configurations. For example, you can create a layout file that is applied to your UI by default, but also include variations of that layout that is applied to specific screen sizes or screen orientations.

你应该永远使这些资源文件同你的源代码分离并且提供备选的资源去支持具体的设备配置。例如,你可以创建一个布局文件作为UI的默认布局,但是也要包含布局的变化去应用于具体的屏幕尺寸和屏幕方向。

To get started, read Providing Resources.

请开始阅读提供资源

猜你喜欢

转载自blog.csdn.net/agoddog/article/details/79627952