diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-09-03 23:47:48 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-03 23:47:48 +0000 |
commit | 366390ce9fdd72aab23d4e4120ebbb8b278a37ce (patch) | |
tree | 65f4eeedcfc2ad6d0a8d905185695d65db88643a /docs | |
parent | 98a31b2ef0cdcf68ea1ded8620a59c3d13ac9c19 (diff) | |
parent | 17aec62001a60c191c21d7cbf34ecd9d2f2683bd (diff) | |
download | frameworks_base-366390ce9fdd72aab23d4e4120ebbb8b278a37ce.zip frameworks_base-366390ce9fdd72aab23d4e4120ebbb8b278a37ce.tar.gz frameworks_base-366390ce9fdd72aab23d4e4120ebbb8b278a37ce.tar.bz2 |
am 17aec620: am 15abafe2: am c0393e7f: Merge "docs: Docs for Android project view. Bug: 17108468" into klp-modular-docs
* commit '17aec62001a60c191c21d7cbf34ecd9d2f2683bd':
docs: Docs for Android project view. Bug: 17108468
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/images/tools/projectview01.png | bin | 0 -> 17079 bytes | |||
-rw-r--r-- | docs/html/images/tools/projectview03.png | bin | 0 -> 75252 bytes | |||
-rw-r--r-- | docs/html/sdk/installing/studio-androidview.jd | 55 | ||||
-rw-r--r-- | docs/html/tools/tools_toc.cs | 2 |
4 files changed, 57 insertions, 0 deletions
diff --git a/docs/html/images/tools/projectview01.png b/docs/html/images/tools/projectview01.png Binary files differnew file mode 100644 index 0000000..90589fb --- /dev/null +++ b/docs/html/images/tools/projectview01.png diff --git a/docs/html/images/tools/projectview03.png b/docs/html/images/tools/projectview03.png Binary files differnew file mode 100644 index 0000000..f527ff1 --- /dev/null +++ b/docs/html/images/tools/projectview03.png diff --git a/docs/html/sdk/installing/studio-androidview.jd b/docs/html/sdk/installing/studio-androidview.jd new file mode 100644 index 0000000..09aeaba --- /dev/null +++ b/docs/html/sdk/installing/studio-androidview.jd @@ -0,0 +1,55 @@ +page.title=Using the Android Project View + +@jd:body + + +<p>The Android project view in Android Studio shows a flattened version of your project's structure +that provides quick access to the key source files of Android projects and helps you work with +the new <a href="{@docRoot}sdk/installing/studio-build.html">Gradle-based build system</a>. The +Android project view:</p> + +<ul> +<li>Groups the build files for all modules at the top level of the project hierarchy.</li> +<li>Shows the most important source directories at the top level of the module hierarchy.</li> +<li>Groups all the manifest files for each module.</li> +<li>Shows resource files from all Gradle source sets.</li> +<li>Groups resource files for different locales, orientations, and screen types in a single group +per resource type.</li> +</ul> + +<div style="float:right;margin-left:30px;width:240px"> +<img src="{@docRoot}images/tools/projectview01.png" alt="" width="220" height="264"/> +<p class="img-caption"><strong>Figure 1:</strong> Show the Android project view.</p> +</div> + + +<h2 id="enable-view">Enable the Android Project View</h2> + +<p>The Android project view is not yet enabled by default. To show the Android project view, +click <strong>Project</strong> and select <strong>Android</strong>, as shown in Figure 1.</p> + + +<h2 id="project-view">Use the Android Project View</h2> + +<p>The Android project view shows all the build files at the top level of the project hierarchy +under <strong>Gradle Scripts</strong>. Each project module appears as a folder at the top +level of the project hierarchy and contains these three elements at the top level:</p> + +<ul> +<li><code>java/</code> - Source files for the module.</li> +<li><code>manifests/</code> - Manifest files for the module.</li> +<li><code>res/</code> - Resource files for the module.</li> +</ul> + +<p>Figure 2 shows how the Android project view groups all the instances of the +<code>ic_launcher.png</code> resource for different screen densities under the same element.</p> + +<p class="note"><strong>Note:</strong> The Android project view shows a hierarchy that helps you +work with Android projects by providing a flattened structure that highlights the most commonly +used files while developing Android applications. However, the project structure on disk differs +from this representation.</p> + +<img src="{@docRoot}images/tools/projectview03.png" alt="" + style="margin-top:10px" width="650" height="508"/> +<p class="img-caption"><strong>Figure 2:</strong> The traditional project view (left) and the +Android project view (right).</p>
\ No newline at end of file diff --git a/docs/html/tools/tools_toc.cs b/docs/html/tools/tools_toc.cs index 93e5976..8eb9cbf 100644 --- a/docs/html/tools/tools_toc.cs +++ b/docs/html/tools/tools_toc.cs @@ -24,6 +24,8 @@ Creating a Project</a></li> <li><a href="<?cs var:toroot ?>sdk/installing/studio-tips.html"> Tips and Tricks</a></li> + <li><a href="<?cs var:toroot ?>sdk/installing/studio-androidview.html"> + Using the Android Project View</a></li> <li><a href="<?cs var:toroot ?>sdk/installing/studio-layout.html"> Using the Layout Editor</a></li> <li><a href="<?cs var:toroot ?>sdk/installing/studio-build.html"> |