From 69223702e4aa248791f0a0d858f8225d41ee67ef Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Mon, 9 Feb 2015 11:40:44 -0800 Subject: docs: site mipmap folder updates b/12874352 Change-Id: I0b32502c8075740c66f04203110c9bfe8be103f9 --- .../html/guide/topics/resources/available-resources.jd | 1 + .../html/guide/topics/resources/providing-resources.jd | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'docs/html/guide/topics') diff --git a/docs/html/guide/topics/resources/available-resources.jd b/docs/html/guide/topics/resources/available-resources.jd index 19babee..db1bf8d 100644 --- a/docs/html/guide/topics/resources/available-resources.jd +++ b/docs/html/guide/topics/resources/available-resources.jd @@ -29,6 +29,7 @@ Saved in {@code res/color/} and accessed from the {@code R.color} class.
Drawable Resources
Define various graphics with bitmaps or XML.
Saved in {@code res/drawable/} and accessed from the {@code R.drawable} class.
+
Layout Resource
Define the layout for your application UI.
Saved in {@code res/layout/} and accessed from the {@code R.layout} class.
diff --git a/docs/html/guide/topics/resources/providing-resources.jd b/docs/html/guide/topics/resources/providing-resources.jd index 6d9527f..98e7c96 100644 --- a/docs/html/guide/topics/resources/providing-resources.jd +++ b/docs/html/guide/topics/resources/providing-resources.jd @@ -60,18 +60,24 @@ MyProject/ MyActivity.java res/ drawable/ - icon.png + graphic.png layout/ main.xml info.xml + mipmap/ + icon.png values/ strings.xml

As you can see in this example, the {@code res/} directory contains all the resources (in -subdirectories): an image resource, two layout resources, and a string resource file. The resource +subdirectories): an image resource, two layout resources, {@code mipmap/} directories for launcher +icons, and a string resource file. The resource directory names are important and are described in table 1.

+

Note: For more information about using the mipmap folders, see +Managing Projects Overview.

+

Table 1. Resource directories supported inside project {@code res/} directory.

@@ -104,6 +110,7 @@ State List Resource drawable/ +

Bitmap files ({@code .png}, {@code .9.png}, {@code .jpg}, {@code .gif}) or XML files that are compiled into the following drawable resource subtypes: