diff options
author | Scott Main <smain@google.com> | 2010-12-15 17:21:30 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2010-12-15 17:44:38 -0800 |
commit | 58d1966767f017488f23360facbe6bb673ef93a1 (patch) | |
tree | a376c1ee1deb5d454ef4c479596d7e5c2a35c2eb /docs/html | |
parent | b094b0c4a4309f48d9da7253de78ebda20a8a81c (diff) | |
download | frameworks_base-58d1966767f017488f23360facbe6bb673ef93a1.zip frameworks_base-58d1966767f017488f23360facbe6bb673ef93a1.tar.gz frameworks_base-58d1966767f017488f23360facbe6bb673ef93a1.tar.bz2 |
cherrypick Change-Id: I07634c137e515068911c61c04bf3e9400c3fe0d4
docs: misc changes;
add path to adb tool in sdk;
fix broken link to ninepatch docs;
fix and add some other links
Change-Id: I27c7284ac2db2e6020c9cb0115fb932a2f503033
Diffstat (limited to 'docs/html')
-rw-r--r-- | docs/html/guide/developing/tools/adb.jd | 2 | ||||
-rw-r--r-- | docs/html/guide/developing/tools/draw9patch.jd | 5 | ||||
-rw-r--r-- | docs/html/guide/topics/graphics/2d-graphics.jd | 19 |
3 files changed, 18 insertions, 8 deletions
diff --git a/docs/html/guide/developing/tools/adb.jd b/docs/html/guide/developing/tools/adb.jd index 04eed8e..3c6351e 100644 --- a/docs/html/guide/developing/tools/adb.jd +++ b/docs/html/guide/developing/tools/adb.jd @@ -79,6 +79,8 @@ page.title=Android Debug Bridge <li>A daemon, which runs as a background process on each emulator or device instance. </li> </ul> +<p>You can find the {@code adb} tool in {@code <sdk>/platform-tools/}.</p> + <p>When you start an adb client, the client first checks whether there is an adb server process already running. If there isn't, it starts the server process. When the server starts, it binds to local TCP port 5037 and listens for commands sent from adb clients—all adb clients use port 5037 to communicate with the adb server. </p> <p>The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example: </p> diff --git a/docs/html/guide/developing/tools/draw9patch.jd b/docs/html/guide/developing/tools/draw9patch.jd index 61da1e0..4d8043b 100644 --- a/docs/html/guide/developing/tools/draw9patch.jd +++ b/docs/html/guide/developing/tools/draw9patch.jd @@ -4,8 +4,9 @@ page.title=Draw 9-patch <p>The Draw 9-patch tool allows you to easily create a {@link android.graphics.NinePatch} graphic using a WYSIWYG editor.</p> <p>For an introduction to Nine-patch graphics and how they work, please read -the section on Nine-patch in the -<a href="{@docRoot}guide/topics/resources/available-resources.html#ninepatch">Nine-patch Images</a> topic.</p> +the section about Nine-patch in the +<a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D Graphics</a> +document.</p> <img src="{@docRoot}images/draw9patch-norm.png" style="float:right" alt="" height="300" width="341" /> diff --git a/docs/html/guide/topics/graphics/2d-graphics.jd b/docs/html/guide/topics/graphics/2d-graphics.jd index e46dbb4..13a86dd 100644 --- a/docs/html/guide/topics/graphics/2d-graphics.jd +++ b/docs/html/guide/topics/graphics/2d-graphics.jd @@ -14,9 +14,9 @@ parent.link=index.html <li><a href="#drawables-from-xml">Creating from resource XML</a></li> </ol> </li> - <li><a href="#shape-drawable">ShapeDrawable</a></li> + <li><a href="#shape-drawable">Shape Drawable</a></li> <!-- <li><a href="#state-list">StateListDrawable</a></li> --> - <li><a href="#nine-patch">NinePatchDrawable</a></li> + <li><a href="#nine-patch">Nine-patch</a></li> <li><a href="#tween-animation">Tween Animation</a></li> <li><a href="#frame-animation">Frame Animation</a></li> </ol> @@ -165,7 +165,7 @@ image.setImageDrawable(transition); -<h2 id="shape-drawable">ShapeDrawable</h2> +<h2 id="shape-drawable">Shape Drawable</h2> <p>When you want to dynamically draw some two-dimensional graphics, a {@link android.graphics.drawable.ShapeDrawable} object will probably suit your needs. With a ShapeDrawable, you can programmatically draw @@ -234,6 +234,11 @@ allows you to define various properties of the drawable with public methods. Some properties you might want to adjust include alpha transparency, color filter, dither, opacity and color.</p> +<p>You can also define primitive drawable shapes using XML. For more information, see the +section about Shape Drawables in the <a +href="{@docRoot}guide/topics/resources/drawable-resource.html#Shape">Drawable Resources</a> +document.</p> + <!-- TODO <h2 id="state-list">StateListDrawable</h2> @@ -245,7 +250,7 @@ intention of the StateListDrawable is to automatically change the image used bas of the object it's attached to. --> -<h2 id="nine-patch">NinePatchDrawable</h2> +<h2 id="nine-patch">Nine-patch</h2> <p>A {@link android.graphics.drawable.NinePatchDrawable} graphic is a stretchable bitmap image, which Android will automatically resize to accommodate the contents of the View in which you have placed it as the background. @@ -424,8 +429,8 @@ then assign the animation to the View with <code>{@link android.view.View#setAnimation(android.view.animation.Animation) View.setAnimation()}</code>. </p> -<p>For more information on the XML syntax, available tags and attributes, see the discussion on animation -in the <a href="{@docRoot}guide/topics/resources/available-resources.html#animation">Available Resources</a>.</p> +<p>For more information on the XML syntax, available tags and attributes, see <a +href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a>.</p> <p class="note"><strong>Note:</strong> Regardless of how your animation may move or resize, the bounds of the View that holds your animation will not automatically adjust to accommodate it. Even so, the animation will still @@ -489,4 +494,6 @@ requiring interaction, then you might want to call it from the <code>{@link android.app.Activity#onWindowFocusChanged(boolean) onWindowFocusChanged()}</code> method in your Activity, which will get called when Android brings your window into focus.</p> +<p>For more information on the XML syntax, available tags and attributes, see <a +href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a>.</p> |