diff options
| -rw-r--r-- | docs/html/guide/topics/graphics/animation.jd | 42 | ||||
| -rw-r--r-- | docs/html/guide/topics/resources/providing-resources.jd | 13 | ||||
| -rw-r--r-- | docs/html/guide/topics/usb/index.jd | 4 | ||||
| -rw-r--r-- | docs/html/sdk/eclipse-adt.jd | 141 | ||||
| -rw-r--r-- | docs/html/sdk/sdk_toc.cs | 4 |
5 files changed, 183 insertions, 21 deletions
diff --git a/docs/html/guide/topics/graphics/animation.jd b/docs/html/guide/topics/graphics/animation.jd index e10ab3ee34be..0b02ee767e7d 100644 --- a/docs/html/guide/topics/graphics/animation.jd +++ b/docs/html/guide/topics/graphics/animation.jd @@ -868,10 +868,22 @@ ObjectAnimator.ofFloat(myView, "rotation", 0f, 360f); For more information on creating animators, see the sections on animating with <a href="#value-animator">ValueAnimator</a> and <a href="#object-animator">ObjectAnimator</a> - <h2 id="declaring-xml">Declaring Animations in XML</h2> + +<h2 id="declaring-xml">Declaring Animations in XML</h2> <p>The property animation system lets you declare property animations with XML instead of doing - it programmatically. The following Android classes have XML declaration support with the + it programmatically. By defining your animations in XML, you can easily reuse your animations +in multiple activities and more easily edit the animation sequence.</p> + +<p>To distinguish animation files that use the new property animation APIs from those that use the +legacy <a href="{@docRoot}guide/topics/graphics/view-animation.html">view animation</a> framework, +starting with Android 3.1, you should save the XML files for property animations in the {@code +res/animator/} directory (instead of {@code res/anim/}). Using the {@code animator} directory name +is optional, but necessary if you want to use the layout editor tools in the Eclipse ADT plugin (ADT +11.0.0+), because ADT only searches the {@code res/animator/} directory for property animation +resources.</p> + +<p>The following property animation classes have XML declaration support with the following XML tags:</p> <ul> @@ -924,22 +936,25 @@ For more information on creating animators, see the sections on animating with beginning each time.</dd> </dl> - <p>The <code>objectAnimator</code> ({@link android.animation.ObjectAnimator}) element has the - additional attribute <code>propertyName</code>, that lets you specify the name of the property - being animated. The <code>objectAnimator</code> element does not expose a <code>target</code> + <p>The <code><objectAnimator></code> ({@link android.animation.ObjectAnimator}) element has the + additional attribute <code>android:propertyName</code>, that lets you specify the name of the +property + being animated. The <code><objectAnimator></code> element does not expose a <code>target</code> attribute, however, so you cannot set the object to animate in the XML declaration. You have to inflate the XML resource by calling {@link android.animation.AnimatorInflater#loadAnimator loadAnimator()} and call {@link android.animation.ObjectAnimator#setTarget setTarget()} to set the target object unlike the underlying {@link android.animation.ObjectAnimator}, before calling {@link android.animation.ObjectAnimator#start start()}.</p> - <p>The <code>set</code> element ({@link android.animation.AnimatorSet}) exposes a single - attribute, <code>ordering</code>. Set this attribute to <code>together</code> (default) to play - all the animations in this set at once. Set this attribute to <code>sequentially</code> to play + <p>The <code><set></code> element ({@link android.animation.AnimatorSet}) exposes a single + attribute, <code>android:ordering</code>. Set this attribute to <code>"together"</code> (default) +to play + all the animations in this set at once. Set this attribute to <code>"sequentially"</code> to play the animations in the order they are declared.</p> - <p>You can specify nested <code>set</code> tags to further group animations together. The - animations that you want to group together should be children of the <code>set</code> tag and can + <p>You can specify nested <code><set></code> elements to further group animations together. +The + animations that you want to group together should be children of the <code><set></code> tag and can define their own <code>ordering</code> attribute.</p> <p>As an example, this XML code creates an {@link android.animation.AnimatorSet} object that @@ -969,4 +984,9 @@ For more information on creating animators, see the sections on animating with android.animation.AnimatorSet} object, and then set the target objects for all of the animations before starting the animation set. Calling {@link android.animation.AnimatorSet#setTarget setTarget()} sets a single target object for all children of the {@link - android.animation.AnimatorSet}.</p>
\ No newline at end of file + android.animation.AnimatorSet}.</p> + +<p class="note"><strong>Tip:</strong> To see how the ADT layout editor allows you to develop and +preview animations in your layout, watch the <a +href="http://www.youtube.com/watch?v=Oq05KqjXTvs&feature=player_detailpage#t=1709s">Android +Developer Tools session</a> from Google I/O '11</p> diff --git a/docs/html/guide/topics/resources/providing-resources.jd b/docs/html/guide/topics/resources/providing-resources.jd index 32595a0dd50a..59f2e731dba5 100644 --- a/docs/html/guide/topics/resources/providing-resources.jd +++ b/docs/html/guide/topics/resources/providing-resources.jd @@ -88,9 +88,18 @@ supported inside project {@code res/} directory.</p> </tr> <tr> + <td><code>animator/</code></td> + <td>XML files that define <a href="{@docRoot}guide/topics/graphics/animation.html">property +animations</a>.</td> + </tr> + + <tr> <td><code>anim/</code></td> - <td>XML files that define tween animations. See <a -href="animation-resource.html">Animation Resources</a>.</td> + <td>XML files that define <a +href="{@docRoot}guide/topics/graphics/view-animation.html#tween-animation">tween +animations</a>. (Property animations can also be saved in this directory, but +the {@code animator/} directory is preferred for property animations to distinguish between the two +types.)</td> </tr> <tr> diff --git a/docs/html/guide/topics/usb/index.jd b/docs/html/guide/topics/usb/index.jd index 18af06ac666c..3e2a18b87619 100644 --- a/docs/html/guide/topics/usb/index.jd +++ b/docs/html/guide/topics/usb/index.jd @@ -6,9 +6,9 @@ page.title=USB Host and Accessory <h2>Topics</h2> <ol> - <li><a href="{@docRoot}/guide/topics/USB/accessory.jd">USB Accessory</a></li> + <li><a href="{@docRoot}guide/topics/USB/accessory.jd">USB Accessory</a></li> - <li><a href="{@docRoot}/guide/topics/USB/host.jd">USB Host</a></li> + <li><a href="{@docRoot}guide/topics/USB/host.jd">USB Host</a></li> </ol> </div> </div> diff --git a/docs/html/sdk/eclipse-adt.jd b/docs/html/sdk/eclipse-adt.jd index feb84b1175cc..935bf63e0890 100644 --- a/docs/html/sdk/eclipse-adt.jd +++ b/docs/html/sdk/eclipse-adt.jd @@ -1,8 +1,8 @@ page.title=ADT Plugin for Eclipse -adt.zip.version=10.0.1 -adt.zip.download=ADT-10.0.1.zip -adt.zip.bytes=5096182 -adt.zip.checksum=e26a77db08377bdd2e62edeb9a3e3701 +adt.zip.version=11.0.0 +adt.zip.download=ADT-11.0.0.zip +adt.zip.bytes=TODO +adt.zip.checksum=TODO @jd:body @@ -100,6 +100,139 @@ padding: .25em 1em; <a href="#" onclick="return toggleDiv(this)"> <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> +ADT 11.0.0</a> <em>(June 2011)</em> + <dd class="toggleme"> + +<dl> + +<dt>Dependencies:</dt> + +<dd>ADT 11.0.0 is designed for use with SDK Tools r11. If you haven't +already installed SDK Tools r11 into your SDK, use the Android SDK and AVD Manager to do +so.</dd> + +<dt>Visual Refactoring:</dt> +<dd> + <ul> + <li>"Extract Style" feature pulls out style-related attributes from your layout and extracts +them as a new style defined in {@code styles.xml} (<a +href="http://tools.android.com/recent/extractstylerefactoring">more info</a>).</li> + <li>"Wrap in Container" feature lets you select a group of views then surround them + in a new layout (a new view group, such as a LinearLayout), and transfers namespace and layout + parameters to the new parent (<a +href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more +info</a>).</li> + <li>"Change Layout" feature changes layouts from one type + to another, and can also flatten a layout hierarchy (<a +href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more +info</a>).</li> + <li>"Change Widget Type" feature changes the type of the + selected views to a new type. Also, a new selection context menu + in the visual layout editor makes it easy to select siblings as + well as views anywhere in the layout that have the same type (<a +href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more +info</a>).</li> + <li>"Extract as Include" feature finds identical collections of views + in other layouts and offers to combine them into a single layout that you can then include in + each layout (<a +href="http://tools.android.com/recent/extractasincludeimprovements">more info</a>).</li> + <li>Quick Assistant in Eclipse can be invoked + from the XML editor (with Ctrl-1) to apply any of the above + refactorings (and Extract String) to the current selection (<a +href="http://tools.android.com/recent/refactoringquickassistant">more info</a>).</li> + </ul> +</dd> + +<dt>Visual Layout Editor:</dt> +<dd> + <ul> + <li>This is the update to the layout editor you've been waiting for! It includes (almost) all +the goodies demonstrated at Google I/O. <a href="http://www.youtube.com/watch?v=Oq05KqjXTvs">Watch +the video</a> on YouTube.</li> + <li>The palette now supports different configurations for supported widgets. That is, a single +view is presented in various different configurations that you can drag into your layout. For +example, there is a <em>Text Fields</em> palette category where you can drag an {@link +android.widget.EditText} widget in as a password field, an e-mail field, a phone field, or other +types of text boxes. Similarly, {@link android.widget.TextView} widgets are preconfigured +with large, normal and small theme sizes, and {@link android.widget.LinearLayout} elements are +preconfigured in horizontal and vertical configurations (<a +href="http://tools.android.com/recent/multipletextfieldandlayouttypes">more info</a>).</li> + <li>The palette supports custom views. You can pick up any custom + implementations of the View class you've created in your project or from included libraries and +drag them into your layout (<a +href="http://tools.android.com/recent/customviewsinthepalette">more info</a>).</li> + <li>Fragments are available in the palette for placement in your layout. In the tool, you can +choose which layout to show rendered for a given fragment tag. Go to declaration works for fragment +classes (<a href="http://tools.android.com/recent/fragmentsupport">more info</a>).</li> + <li>The layout editor automatically applies a "zoom to fit" for newly + opened files as well as on device size and orientation changes to + ensure that large layouts are always fully visible unless you + manually zoom in.</li> + <li>You can drop in an {@code <include>} element from the palette, which will pop up + a layout chooser. When you select the layout to include, it is added with an {@code +<include>}. Similarly, dropping images or image buttons will pop up image + resource choosers (<a +href="http://tools.android.com/recent/includetagdropsupport">more info</a>).</li> + <li>The configuration chooser now applies the "Render Target" and + "Locale" settings project wide, making it trivial to check the + layouts for different languages or render targets without having + to configure these individually for each layout.</li> + <li>The layout editor is smarter about picking a default theme to + render a layout with, consulting factors like theme registrations + in the manifest, the SDK version, and other factors.</li> + <li>The layout editor is smarter about picking a default configuration to render a layout +with, defaulting to the currently visible configuration in the previous file. It also considers the +SDK target to determine whether to default to a tablet or phone screen size.</li> + <li>Basic focus support. The first text field dropped in a layout is assigned focus, and there +are <strong>Request Focus</strong> and <strong>Clear Focus</strong> context menu items on text +fields to change the focus.</li> + </ul> +</dd> + +<dt>XML editors:</dt> +<dd> +<ul> + <li>Code completion has been significantly improved. It now works + with {@code <style>} elements, completes dimensional units, + sorts resource paths in values based on the attribute name, and more. There are also many fixes to +handle text replacement (<a +href="http://tools.android.com/recent/xmlcodecompletionimprovements">more info</a>).</li> + <li>AAPT errors are handled better. They are now underlined for the + relevant range in the editor, and a new quickfix makes it trivial + to create missing resources.</li> + <li>Code completion for drawable, animation and color XML files (<a +href="http://tools.android.com/recent/codecompletionfordrawablescolorsandanimationfiles">more +info</a>).</li> +</ul> +</dd> + +<dt>DDMS:</dt> +<dd> +<ul> + <li>"New Folder" action in the File Explorer.</li> + <li>The screenshot dialog will add timestamps to the filenames and preserve the orientation on +snapshot refresh.</li> +</ul> +</dd> + +<dt>General notes:</dt> +<dd> + <ul> + <li>TraceView supports zooming with the mouse-wheel in the timeline.</li> + <li>The New Android Project wizard now supports Eclipse working sets.</li> + </ul> +</dd> +</dl> +<p>More information about tool changes are available on the <a +href="http://tools.android.com/recent">Android Tools Project Site</a>.</p> +</div> +</div> + + +<div class="toggleable closed"> + <a href="#" onclick="return toggleDiv(this)"> + <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" +width="9px" /> ADT 10.0.1</a> <em>(March 2011)</em> <div class="toggleme"> diff --git a/docs/html/sdk/sdk_toc.cs b/docs/html/sdk/sdk_toc.cs index 286307ade944..5b90551385ed 100644 --- a/docs/html/sdk/sdk_toc.cs +++ b/docs/html/sdk/sdk_toc.cs @@ -153,7 +153,7 @@ class="new">new!</span></li> <span style="display:none" class="zh-TW"></span> </h2> <ul> - <li><a href="<?cs var:toroot ?>sdk/eclipse-adt.html">ADT 10.0.1 + <li><a href="<?cs var:toroot ?>sdk/eclipse-adt.html">ADT 11.0.0 <span style="display:none" class="de"></span> <span style="display:none" class="es"></span> <span style="display:none" class="fr"></span> @@ -161,7 +161,7 @@ class="new">new!</span></li> <span style="display:none" class="ja"></span> <span style="display:none" class="zh-CN"></span> <span style="display:none" class="zh-TW"></span></a> - <!-- <span class="new">new!</span> --></li> + <span class="new">new!</span></li> </ul> </li> <li> |