docs: lots of additions to the resources docs

new drawable resources
add <merge> and <include> to layout resource
update drawable class descriptioons to point to resources guide
add ID resource type

Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
This commit is contained in:
Scott Main
2010-06-08 15:54:52 -07:00
parent 457738e628
commit dfe5c20440
21 changed files with 1415 additions and 229 deletions

View File

@@ -93,8 +93,8 @@ import android.util.TypedValue;
* whose overall size is modified based on the current level.
* </ul>
* <p>For information and examples of creating drawable resources (XML or bitmap files that
* can be loaded in code), see <a href="{@docRoot}guide/topics/resources/resources-i18n.html">Resources
* and Internationalization</a>.
* can be loaded in code), see <a
* href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.
*/
public abstract class Drawable {
private static final Rect ZERO_BOUNDS_RECT = new Rect();
@@ -709,8 +709,7 @@ public abstract class Drawable {
/**
* Create a drawable from an XML document. For more information on how to
* create resources in XML, see
* <a href="{@docRoot}guide/topics/resources/resources-i18n.html">Resources and
* Internationalization</a>.
* <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.
*/
public static Drawable createFromXml(Resources r, XmlPullParser parser)
throws XmlPullParserException, IOException {