From 58d1966767f017488f23360facbe6bb673ef93a1 Mon Sep 17 00:00:00 2001
From: Scott Main You can find the {@code adb} tool in {@code <sdk>/platform-tools/}. 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. 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: The Draw 9-patch tool allows you to easily create a
{@link android.graphics.NinePatch} graphic using a WYSIWYG editor. For an introduction to Nine-patch graphics and how they work, please read
-the section on Nine-patch in the
-Nine-patch Images topic.
diff --git a/docs/html/guide/topics/graphics/2d-graphics.jd b/docs/html/guide/topics/graphics/2d-graphics.jd
index e46dbb46a3cb..13a86dd96ddd 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
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.
+You can also define primitive drawable shapes using XML. For more information, see the +section about Shape Drawables in the Drawable Resources +document.
+ -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
{@link android.view.View#setAnimation(android.view.animation.Animation) View.setAnimation()}.
For more information on the XML syntax, available tags and attributes, see the discussion on animation -in the Available Resources.
+For more information on the XML syntax, available tags and attributes, see Animation Resources.
Note: 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
{@link android.app.Activity#onWindowFocusChanged(boolean) onWindowFocusChanged()} method in
your Activity, which will get called when Android brings your window into focus.
For more information on the XML syntax, available tags and attributes, see Animation Resources.
-- cgit v1.2.3-59-g8ed1b