Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ea442b4 authored by Scott Main's avatar Scott Main Committed by Android (Google) Code Review
Browse files

Merge "cherrypick Change-Id: I07634c137e515068911c61c04bf3e9400c3fe0d4 docs:...

Merge "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" into gingerbread
parents c58c3f1a 58d19667
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 &lt;sdk&gt;/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&mdash;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 &mdash; an even-numbered port for console connections and an odd-numbered port for adb connections. For example: </p>
+3 −2
Original line number Diff line number Diff line
@@ -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"
/>
+13 −6
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ parent.link=index.html
      </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>
@@ -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>