android file parsing resources

A, assets directory: create your own, read as a binary stream by AssetManager.

Two, res: resource file

  All resource files are generated in R.java can be accessed through the resource id.
  android: anyDensity = "false": forbid follow-density load resources from different folders.
  layout-480x320 screen adaptation layout file

Three, values ​​directory

values-w820dp, values-v11, the former tablet w represents, on behalf of the screen width 820DP; v11 and so represents API (11), i.e. after android 3.0 will be used!

  • demens.xml: Custom sizes resources
  • string.xml: define string resources
  • styles.xml: Custom Style Resources
  • colors.xml: Custom Color Resources
  • arrays.xml: the definition of an array of resources
  • attrs.xml: used when more custom controls, custom controls property!

raw directory: used to store a variety of native resources (audio, video, some XML files, etc.), we can obtain a binary stream resources by openRawResource (int id)! In fact Assets and almost, but there's a resource id will generate resources in R file where only
animator: animation XML file that holds the property
anim: store tween the XML file

 

  • animator: animation XML file that holds the property
  • anim: storage tween the XML file

Guess you like

Origin www.cnblogs.com/leizz/p/11277234.html