-
res/drawable/image-based resource files;
-
res/layout/can be compiled into a screen layout of the XML file;
-
Res/values/can be compiled into several types of resource files:
(1) array.xml definition array;
(2) Colors.xml defines color and color string values, which are obtained using the resource.getdrawable () and Resource.getcolor () methods respectively;
(3) Dimens.xml defines dimension data, which can be obtained by resource.getdimension () method;
(4) String.xml defines string values that can be obtained using the resource.getstring () or Resource.gettext () methods. where the GetText () method retains any rich text style that is typically described in the UI;
(5) Style.xml defines the style object;
-
The XML file of the res/menu/menu object can be overloaded with the Oncreateoptionsmenu () method of the activity class, using the
Menuinflater inflater = Getmenuinflater ();
Inflater.inflater (R.menu.menu,menu)
code to obtain;
-
A res/anim/xml file, which is compiled into an object that frames animation or tweened animation;
-
Res/xml/is used to place definitions of XML files such as style, theme, or any XML file that can be read by the Resource.getxml () method at run time;
-
res/raw/store any files that are copied directly to the device, and when the program is compiled, they are added directly to the compressed file G.zai the application can obtain resources by using the Resource.openrawresource (ID) method. The form of ID is: r.raw.filename;
All resources will be compiled into the final apk file. Android automatically creates a class----r.java so that you can associate it to the corresponding resource file in your code. The name of the self-thunder contained in the R.java is determined by the path of the resource and the names of the files;
-
Excerpt from: Android application development fine solution;
This article is from the "Androidcamera Summary" blog, please be sure to keep this source http://7183397.blog.51cto.com/7173397/1606765
android--Resource Directory