diff --git a/docs/html/images/tools/projectview-p1.png b/docs/html/images/tools/projectview-p1.png new file mode 100644 index 0000000000000..f5fae63983335 Binary files /dev/null and b/docs/html/images/tools/projectview-p1.png differ diff --git a/docs/html/images/tools/projectview-p2.png b/docs/html/images/tools/projectview-p2.png new file mode 100644 index 0000000000000..9e52540a896c7 Binary files /dev/null and b/docs/html/images/tools/projectview-p2.png differ diff --git a/docs/html/images/tools/studio-mipmap-folders.png b/docs/html/images/tools/studio-mipmap-folders.png new file mode 100644 index 0000000000000..3e991808ce502 Binary files /dev/null and b/docs/html/images/tools/studio-mipmap-folders.png differ diff --git a/docs/html/images/tools/studio-project-layout.png b/docs/html/images/tools/studio-project-layout.png index 880c2336e8b56..7339c3fa3ea78 100644 Binary files a/docs/html/images/tools/studio-project-layout.png and b/docs/html/images/tools/studio-project-layout.png differ diff --git a/docs/html/sdk/installing/create-project.jd b/docs/html/sdk/installing/create-project.jd index 508253774574b..68fd57250d171 100644 --- a/docs/html/sdk/installing/create-project.jd +++ b/docs/html/sdk/installing/create-project.jd @@ -71,7 +71,7 @@ of your project.

Step 2: Select Form Factors and API Level

The next window lets you select the form factors supported by your app, such as phone, tablet, -TV, Wear, and Google Glass. The selected form factors become the application modules witin the +TV, Wear, and Google Glass. The selected form factors become the application modules within the project. For each form factor, you can also select the API Level for that app. To get more information, click Help me choose.

@@ -220,7 +220,7 @@ with complete source files for each of them as shown in figure 6.

along with the other modules.

You can easily change an existing application module to a library module by changing the - plugin assignment in the build.gradle file to com.android.libary.

+ plugin assignment in the build.gradle file to com.android.library.

 apply plugin: 'com.android.application'
@@ -287,7 +287,7 @@ file will override any shared library resources declared in the manifest file.
     
  • Make sure that both the module library and the application module that depends on it are - in your proejct. If one of the modules is missing, import it into your project.
  • + in your project. If one of the modules is missing, import it into your project.
  • In the project view, right-click the dependent module and select Open > Module Settings.
  • @@ -359,39 +359,38 @@ Android project view:

    per resource type. -
    - -

    Figure 9: Show the Android project view.

    -
    -

    Enable and use the Android Project View

    +

    Use the Android Project View

    -

    The Android project view is not yet enabled by default. To show the Android project view, -click Project and select Android, as shown in figure 9.

    - -

    The Android project view shows all the build files at the top level of the project hierarchy -under Gradle Scripts. Each project module appears as a folder at the top -level of the project hierarchy and contains these three elements at the top level:

    +

    The Android project view is enabled by default and shows all the build files at +the top level of the project hierarchy under Gradle Scripts. The project module +appears as a folder at the top level of the project hierarchy and contains these three elements +at the top level:

    -

    Figure 10 shows how the Android project view groups all the instances of the +

    Notice how the Android project view groups all instances of the ic_launcher.png resource for different screen densities under the same element.

    Note: 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.

    +from this representation and maintains the traditional project structure.

    + + +    + +

    Figure 10: Android and Traditional project view

    + + + + - -

    Figure 10: The traditional project view (left) and the -Android project view (right).

    diff --git a/docs/html/tools/studio/index.jd b/docs/html/tools/studio/index.jd index f48adb395d6db..11c1c74249ed8 100644 --- a/docs/html/tools/studio/index.jd +++ b/docs/html/tools/studio/index.jd @@ -65,7 +65,7 @@ Studio.

    Android Project View

    By default, Android Studio displays your profile files in the Android project view. This view 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 +source files of Android projects and helps you work with the Gradle-based build system. The Android project view:

    @@ -102,7 +102,7 @@ the Project -

    New Project and Directory Structure

    +

    Android Studio Project and Directory Structure

    When you use the Project view of a new project in Android Studio, you should notice that the project structure appears different than you may be used to in Eclipse. Each instance of Android Studio contains a project with one or more application modules. Each @@ -120,6 +120,7 @@ specification and the files under {@code src/androidTest} directory for test cas Managing Projects.

    +

    Creating new files

    You can quickly add new code and resource files by clicking the appropriate directory in the Project pane and pressing ALT + INSERT on Windows and Linux or @@ -250,23 +251,15 @@ memory the connected device is using. With your app running on a device or emula Memory Monitor tab in the lower right corner to launch the memory monitor.

    -

    Figure 4. Memory Monitor

    +

    Figure 5. Memory Monitor

    -

    New Lint inspections

    -

    Lint has several new checks to ensure: -

    +

    Lint inspections

    +

    The Android {@code lint} tool is a static code analysis tool that checks your Android project +source files for potential bugs and optimization improvements. Choose the Analyze > +Inspect Code to manually run the inspections. The {@code lint} settings icon in the +Inspection display provides a complete list of the current inspections.

    Hovering over a Lint error displays the full issue explanation inline for easy error resolution. There is also a helpful hyperlink at the end of the error message for additional @@ -295,17 +288,17 @@ build.gradle file.

    Android Studio allows you to work with layouts in both a Design View

    -

    Figure 5. Hello World App with Design View

    +

    Figure 6. Hello World App with Design View

    and a Text View.

    - Figure 6. Hello World App with Text View

    + Figure 7. Hello World App with Text View

    Easily select and preview layout changes for different device images, display densities, UI modes, locales, and Android versions (multi-API version rendering).

    -

    Figure 7. API Version Rendering

    +

    Figure 8. API Version Rendering

    From the Design View, you can drag and drop elements from the Palette to the Preview or @@ -342,18 +335,18 @@ the wizard updates your system image and emulation requirements, such GPU, and t an optimized default Android Virtual Device (AVD) based on Android 5 (Lollipop) for speedy and reliable emulation.

    -

    Figure 8. Setup Wizard

    +

    Figure 9. Setup Wizard

    Expanded template and form factor support

    -

    Android Studio supports new templates for Google Services and expands the available device +

    Android Studio supports templates for Google Services and expands the available device types.

    Android Wear and TV support

    For easy cross-platform development, the Project Wizard provides new templates for creating your apps for Android Wear and TV.

    -

    Figure 9. New Form Factors

    +

    Figure 10. Supported Form Factors

    During app creation, the Project Wizard also displays an API Level dialog to help you choose the best minSdkVersion for your project.

    @@ -363,7 +356,7 @@ types.

    and create a cloud end-point is as easy as selecting File > New Module > App Engine Java Servlet Module and specifying the module, package, and client names.

    -

    Figure 10. Setup Wizard

    +

    Figure 11. Setup Wizard

    @@ -514,14 +507,14 @@ into your project.

    Open Editor link.

    -

    Figure 11. Translation Editor

    +

    Figure 12. Translation Editor

    Editor support for the latest Android APIs

    -

    Android Studio supports the new +

    Android Studio supports the Material Design themes, widgets, and graphics, such as shadow layers and API version rendering (showing the layout across different -UI versions). Also, the new drawable XML tags and attributes, such as <ripple> +UI versions). Also, the drawable XML tags and attributes, such as <ripple> and <animated-selector>, are supported.

    @@ -529,10 +522,10 @@ and <animated-selector>, are supported.

    Clicking Import Samples from the File menu or Welcome page provides seamless access to Google code samples on GitHub.

    -

    Figure 12. Code Sample Access

    +

    Figure 13. Code Sample Access

    -

    Figure 13. Imported Code Sample

    +

    Figure 14. Imported Code Sample