diff --git a/docs/html/guide/developing/tools/index.jd b/docs/html/guide/developing/tools/index.jd index 91b430ff771a3..6e9fde1fb0f40 100644 --- a/docs/html/guide/developing/tools/index.jd +++ b/docs/html/guide/developing/tools/index.jd @@ -30,6 +30,11 @@ applications on the emulator.
layoutopt is a command-line tool that helps you optimize the
+layouts and layout hierarchies of your applications. You can run it against your
+layout files or resource directories to quickly check for inefficiencies or
+other types of problems that could be affecting the performance of your
+application.
To run the tool, open a terminal and launch layoutopt
+<resources> from your SDK tools/ directory. In the
+command, supply a list of uncompiled resource xml files or directories that you
+want to analyze.
When run, the tool loads the specified XML files and analyzes their layout +structures and hierarchies according to a set of predefined rules. If it detects +issues, it outputs information about the issues, giving filename, line numbers, +description of issue, and for some types of issues a suggested resolution.
+ +Here's an example of the output:
+ +$ layoutopt samples/ +samples/compound.xml + 7:23 The root-level <FrameLayout/> can be replaced with <merge/> + 11:21 This LinearLayout layout or its FrameLayout parent is useless +samples/simple.xml + 7:7 The root-level <FrameLayout/> can be replaced with <merge/> +samples/too_deep.xml + -1:-1 This layout has too many nested layouts: 13 levels, it should have <= 10! + 20:81 This LinearLayout layout or its LinearLayout parent is useless + 24:79 This LinearLayout layout or its LinearLayout parent is useless + 28:77 This LinearLayout layout or its LinearLayout parent is useless + 32:75 This LinearLayout layout or its LinearLayout parent is useless + 36:73 This LinearLayout layout or its LinearLayout parent is useless + 40:71 This LinearLayout layout or its LinearLayout parent is useless + 44:69 This LinearLayout layout or its LinearLayout parent is useless + 48:67 This LinearLayout layout or its LinearLayout parent is useless + 52:65 This LinearLayout layout or its LinearLayout parent is useless + 56:63 This LinearLayout layout or its LinearLayout parent is useless +samples/too_many.xml + 7:413 The root-level <FrameLayout/> can be replaced with <merge/> + -1:-1 This layout has too many views: 81 views, it should have <= 80! +samples/useless.xml + 7:19 The root-level <FrameLayout/> can be replaced with <merge/> + 11:17 This LinearLayout layout or its FrameLayout parent is useless+ +
The layoutopt tool is available in SDK Tools, Revision 3 or
+later. If you do not have SDK Tools 3 or later installed in your SDK, you can
+download it from the Android SDK repository site using the Android SDK and AVD
+Manager. For information, see Adding SDK Components.
To run layoutopt against a given list of layout resources:
layoutopt <list of xml files or directories>+ +
For example:
+ +$ layoutopt res/layout-land+
$ layoutopt res/layout/main.xml res/layout-land/main.xmldiff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs index e2acc4f330d78..5215202680a22 100644 --- a/docs/html/guide/guide_toc.cs +++ b/docs/html/guide/guide_toc.cs @@ -255,6 +255,7 @@
The Android framework gives you the flexibility to use either or both of these methods for declaring and managing your application's UI. For example, you could declare your application's default layouts in XML, including the screen elements that will appear in them and their properties. You could then add code in your application that would modify the state of the screen objects, including those declared in XML, at run time.
The Android Development Tools - (ADT) plugin for Eclipse offers a layout preview of your XML — - with the XML file opened, select the Layout tab.
-You should also try the +
The advantage to declaring your UI in XML is that it enables you to better separate the presentation of your application from the code that controls its behavior. Your UI descriptions are external to your application code, which means that you can modify or adapt it without having to modify your source code and recompile. For example, you can create XML layouts for different screen orientations, different device screen sizes, and different languages. Additionally, declaring the layout in XML makes it easier to visualize the structure of your UI, so it's easier to debug problems. As such, this document focuses on teaching you how to declare your layout in XML. If you're diff --git a/docs/html/guide/tutorials/localization/index.jd b/docs/html/guide/tutorials/localization/index.jd index eeade34e0eb49..8a60814593a55 100755 --- a/docs/html/guide/tutorials/localization/index.jd +++ b/docs/html/guide/tutorials/localization/index.jd @@ -539,8 +539,10 @@ height="158" style="margin-left:15px">

For a list of supported locales in a specific Android platform, see the -associated notes in the "SDK" tab, under "Downloadable SDK Components."
+For a list of locales available on different versions of the Android platform, +refer to the platform notes documents, listed under "Downloadable SDK Components" +in the "SDK" tab. For example, Android 2.0 locales.
Run the application for each of the expected locales, plus one unexpected locale. Here are some of the results you should see:
diff --git a/docs/html/sdk/RELEASENOTES.jd b/docs/html/sdk/RELEASENOTES.jd index 552b69957b297..bca89f610b7c8 100644 --- a/docs/html/sdk/RELEASENOTES.jd +++ b/docs/html/sdk/RELEASENOTES.jd @@ -2,10 +2,10 @@ page.title=SDK Release Notes @jd:bodyThis document provides version-specific information about Android SDK -releases. For the latest known issues, please ensure that you're viewing this +releases.
Note that if you are currently using the Android 1.6 SDK, you do not -necessarily need to install the new SDK, since your existing SDK incudes the -Android SDK and AVD Manager tool. To develop against Android 2.0, for example, -you could just download the Android 2.0 platform into your existing SDK.
+necessarily need to install the new SDK, since your existing SDK already +includes the Android SDK and AVD Manager tool. To develop against Android 2.0, +for example, you could just download the Android 2.0 platform into your existing +SDK. -Release notes for Android platforms that are downloadable into the SDK are +
Release notes for Android platforms and other SDK components are now available from the "SDK" tab, under "Downloadable SDK Components."
To get started with the SDK, review the Quick Start summary on the Android SDK download page or read Installing the SDK for more -information.
+href="{@docRoot}sdk/installing.html">Installing the SDK for detailed +installation instructions.
-If you are unable to download the ADT plugin through setting up a remote
+ If you are unable to download the ADT plugin through setting up a remote
update site in Eclipse, you can download the ADT zip file and install it
-from your computer (archived site) instead.
-
-If you use this approach, in order to update the plugin, you will need to
+from your computer (archived site) instead. If you use this approach, in order to update the plugin, you will need to
download the latest version from this page, uninstall the old version from
Eclipse, then install the new version. For more details on the procedure,
-see Troubleshooting ADT Installation in the
- installation
-page.
-
| Md5 Checksum | Notes | ||||||
|---|---|---|---|---|---|---|---|
| 0.9.4 | +ADT-0.9.4.zip | +{@adtZipChecksum} | +Requires SDK Tools, Revision 3 |
+ ||||
| 0.9.3 | ADT-0.9.3.zip | -||||||
| 0.9.1 | -ADT-0.9.1.zip | -||||||
| 0.8.0 | -ADT-0.8.0.zip | -c296488ac35772667c0f49e822156979 | +Required for users of Android 1.6 SDK only . Updated from 0.9.1. |
||||
The table below lists older versions of the ADT Plugin that are no longer supported. If you are developing applications that are intended to be deployable to Android-powered devices, make sure that you upgrade to the most current SDK release available and use the most current version of the ADT Plugin, as listed in the section above.
+The table below lists older versions of the ADT Plugin that are no longer +supported. If you are developing applications that are intended to be deployable +to Android-powered devices, make sure that you upgrade to the most current SDK +release available and use the most current version of the ADT Plugin, as listed +in the section above.
-If you are not sure what version of ADT is installed in your Eclipse environment, open Eclipse and from the main menu select Help > About Eclipse > Features Details. Locate "com.android.ide.eclipse.adt" in the -Feature ID column and look at its version number.
+If you are not sure what version of ADT is installed in your Eclipse +environment, open Eclipse and from the main menu select Help +> About Eclipse > Features Details. +Locate "com.android.ide.eclipse.adt" in the Feature ID column and look at its +version number.
| Notes | |
|---|---|
| 0.9.1 | +Required for users of Android 1.5 SDK. Updated from 0.9.0. |
+
| 0.8.0 | +Required for users of Android 1.0/1.1 SDKs. |
+
| 0.7.1 | Required for users of the Android 0.9 SDK beta. |
diff --git a/docs/html/sdk/android-2.0.jd b/docs/html/sdk/android-2.0.jd
index 57283e584e8dd..9dadf8b2155ae 100644
--- a/docs/html/sdk/android-2.0.jd
+++ b/docs/html/sdk/android-2.0.jd
@@ -205,6 +205,7 @@ element in your application's manifest.