Android official documentation: (3) resources-3.6.1 Resource Type Overview

Source: Internet
Author: User

Each of the documents in this section describe the usage, format and syntax for a certain typeof application resource that you can provide in your resources directory (res/).

Here's a brief summary of each resource type:

Animation Resources
Define pre-determined animations.
Tween animations are saved in res/anim/And accessed from R.animClass.
Frame animations are saved in res/drawable/And accessed from R.drawableClass.
Color State List Resource
Define a color resources that changes based on the View state.
Saved in res/color/And accessed from R.colorClass.
Drawable Resources
Define various graphics with bitmaps or XML.
Saved in res/drawable/And accessed from R.drawableClass.
Layout Resource
Define the layout for your application UI.
Saved in res/layout/And accessed from R.layoutClass.
Menu Resource
Define the contents of your application menus.
Saved in res/menu/And accessed from R.menuClass.
String Resources
Define strings, string arrays, and plurals (and include string formatting and styling ).
Saved in res/values/And accessed from R.string, R.array, And R.pluralsClasses.
Style Resource
Define the look and format for UI elements.
Saved in res/values/And accessed from R.styleClass.
More Resource Types
Define values such as booleans, integers, dimensions, colors, and other arrays.
Saved in res/values/But each accessed from unique RSub-classes (such R.bool, R.integer, R.dimen, Etc .).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.