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

Commit c0c74bc9 authored by Sreevani Sreejith's avatar Sreevani Sreejith Committed by Android (Google) Code Review
Browse files

Merge "docs: Moved the "Multi-API Level Rendering" feature of Studio to Layout...

Merge "docs: Moved the "Multi-API Level Rendering" feature of Studio to Layout Editor page. Removed "Dynamic Layout Preview" section from Studio index page. Added Layout Editor tab to the "Tools Help" TOC. Bugfix :25973267" into mnc-docs
parents dd3263c9 ac9177f0
Loading
Loading
Loading
Loading
+399 B
Loading image diff...
+9 −0
Original line number Diff line number Diff line
@@ -132,6 +132,15 @@ help you place the widget, as shown in figure 6:</p>
<p>Within the graphical editor, you can rearrange your app's UI by dragging widgets to
the desired location.</p>

<h3>Multi-API Version Rendering</h3>

<p>Android Studio supports multi-API version rendering. When you click the Android version icon <img src="{@docRoot}images/tools/as-api-level-preview.png" style="vertical-align:bottom;margin:0;height:19px" /> in the <b>Design</b> view,
Android Studio allows you to preview your Android layouts across multiple Android API levels.
</p>

<p><img src="{@docRoot}images/tools/studio-api-version-rendering.png" /></p>
    <p class="img-caption"><strong>Figure 7.</strong> Multi-API version rendering.</p>

<h3>Taking a snapshot</h3>

<p>When you run your app on a connected device, you can take a snapshot of it by clicking
+1 −25
Original line number Diff line number Diff line
@@ -432,7 +432,7 @@ and enumerated constants. </p>
<p>Run <strong>Analyze &gt; Inspect Code</strong> to validate the configured annotations. </p>

<p>For a complete list of the supported annotations, either use the auto-complete feature to display
the available options for the <code>import android.support.annotation.</code> statement or
the available options for the <code>import android.support.annotation</code> statement or
view the contents of the
{@link android.support.annotation Support-Annotations}
library. </p>
@@ -440,30 +440,6 @@ library. </p>
<p>For more details about Android annotations, see
<a href="{@docRoot}tools/debugging/annotations.html">Improving Code Inspection with Annotations</a>.



<h3>Dynamic layout preview</h3>
<p>Android Studio allows you to work with layouts in both a <em>Design View</em> </p>
<p><img src="{@docRoot}images/tools/studio-helloworld-design.png" alt="" />
</p>
    <p class="img-caption"><strong>Figure 6.</strong> Hello World App with Design View.</p>

<p>and a <em>Text View</em>. </p>

    <p><img src="{@docRoot}images/tools/studio-helloworld-text.png" alt="" />
    <pclass="img-caption"><strong>Figure 7.</strong> Hello World App with text view.</p>

<p>Easily select and preview layout changes for different device images, display
densities, UI modes, locales, and Android versions (multi-API version rendering).
    <p><img src="{@docRoot}images/tools/studio-api-version-rendering.png" /></p>
    <p class="img-caption"><strong>Figure 8.</strong> Multi-API version rendering.</p>


<p>From the Design View, you can drag and drop elements from the Palette to the Preview or
Component Tree. The Text View allows you to directly edit the XML settings, while previewing
the device display. </p>


<h3>Log messages</h3>
<p>When you build and run your app with Android Studio, you can view adb and device log messages
(logcat) by clicking <strong>Android</strong> at the bottom of the window.</p>
+1 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@ class="en">Tools Help</span></a></div>
      <li><a href="<?cs var:toroot ?>tools/help/hierarchy-viewer.html">Hierarchy Viewer</a></li>
      <li><a href="<?cs var:toroot ?>tools/help/hprof-conv.html">hprof-conv</a></li>
      <li><a href="<?cs var:toroot ?>tools/help/jobb.html">jobb</a></li>
      <li><a href="<?cs var:toroot ?>sdk/installing/studio-layout.html">Layout Editor</span></a></li>
      <li><a href="<?cs var:toroot ?>tools/help/lint.html">lint</span></a></li>
      <li><a href="<?cs var:toroot ?>tools/help/logcat.html">logcat</a></li>
      <li><a href="<?cs var:toroot ?>tools/help/mksdcard.html">mksdcard</a></li>