* commit '8125b0b4343b7f480196ce73103ca00cdf64f9e5': docs: fix bug 5878445
This commit is contained in:
@ -42,19 +42,20 @@ parent.link=index.html
|
|||||||
<li><a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL with the Framework
|
<li><a href="{@docRoot}guide/topics/graphics/opengl.html">OpenGL with the Framework
|
||||||
APIs</a></li>
|
APIs</a></li>
|
||||||
|
|
||||||
<li><a href="{@docRoot}guide/topics/renderscript/index.html">RenderScript</a></li>
|
<li><a href="{@docRoot}guide/topics/renderscript/index.html">Renderscript</a></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Beginning in Android 3.0 (API level 11), the Android 2D rendering pipeline is designed to
|
<p>Beginning in Android 3.0 (API level 11), the Android 2D rendering pipeline is designed to
|
||||||
better support hardware acceleration. Hardware acceleration carries out all drawing operations
|
better support hardware acceleration. Hardware acceleration carries out all drawing operations
|
||||||
that are performed on a {@link android.view.View}'s canvas using the GPU.</p>
|
that are performed on a {@link android.view.View}'s canvas using the GPU. Because of the
|
||||||
|
increased resources required to enable hardware acceleration, your app will consume more RAM.</p>
|
||||||
|
|
||||||
<p>The easiest way to enable hardware acceleration is to turn it on
|
<p>The easiest way to enable hardware acceleration is to turn it on
|
||||||
globally for your entire application. If your application uses only standard views and {@link
|
globally for your entire application. If your application uses only standard views and {@link
|
||||||
android.graphics.drawable.Drawable}s, turning it on globally should not cause any adverse
|
android.graphics.drawable.Drawable}s, turning it on globally should not cause any adverse
|
||||||
effects. However, because hardware acceleration is not supported for all of the 2D drawing
|
drawing effects. However, because hardware acceleration is not supported for all of the 2D drawing
|
||||||
operations, turning it on might affect some of your applications that use custom views or drawing
|
operations, turning it on might affect some of your applications that use custom views or drawing
|
||||||
calls. Problems usually manifest themselves as invisible elements, exceptions, or wrongly
|
calls. Problems usually manifest themselves as invisible elements, exceptions, or wrongly
|
||||||
rendered pixels. To remedy this, Android gives you the option to enable or disable hardware
|
rendered pixels. To remedy this, Android gives you the option to enable or disable hardware
|
||||||
|
@ -307,7 +307,7 @@ attribute).
|
|||||||
<dd>Whether or not an existing instance of the activity should be shut down
|
<dd>Whether or not an existing instance of the activity should be shut down
|
||||||
(finished) whenever the user again launches its task (chooses the task on the
|
(finished) whenever the user again launches its task (chooses the task on the
|
||||||
home screen) — "{@code true}" if it should be shut down, and "{@code false}"
|
home screen) — "{@code true}" if it should be shut down, and "{@code false}"
|
||||||
if not. The default value is "{@code false}".
|
if not. The default value is "{@code false}".
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If this attribute and
|
If this attribute and
|
||||||
@ -321,13 +321,15 @@ activity is ignored. The activity is not re-parented, but destroyed.
|
|||||||
Activity — "{@code true}" if it should be enabled, and "{@code false}" if
|
Activity — "{@code true}" if it should be enabled, and "{@code false}" if
|
||||||
not. The default value is "{@code false}".
|
not. The default value is "{@code false}".
|
||||||
|
|
||||||
|
|
||||||
<p>Starting from Android 3.0, a hardware-accelerated OpenGL renderer is
|
<p>Starting from Android 3.0, a hardware-accelerated OpenGL renderer is
|
||||||
available to applications, to improve performance for many common 2D graphics
|
available to applications, to improve performance for many common 2D graphics
|
||||||
operations. When the hardware-accelerated renderer is enabled, most operations
|
operations. When the hardware-accelerated renderer is enabled, most operations
|
||||||
in Canvas, Paint, Xfermode, ColorFilter, Shader, and Camera are accelerated.
|
in Canvas, Paint, Xfermode, ColorFilter, Shader, and Camera are accelerated.
|
||||||
This results in smoother animations, smoother scrolling, and improved
|
This results in smoother animations, smoother scrolling, and improved
|
||||||
responsiveness overall, even for applications that do not explicitly make use
|
responsiveness overall, even for applications that do not explicitly make use
|
||||||
the framework's OpenGL libraries. </p>
|
the framework's OpenGL libraries. Because of the increased resources required to
|
||||||
|
enable hardware acceleration, your app will consume more RAM.</p>
|
||||||
|
|
||||||
<p>Note that not all of the OpenGL 2D operations are accelerated. If you enable
|
<p>Note that not all of the OpenGL 2D operations are accelerated. If you enable
|
||||||
the hardware-accelerated renderer, test your application to ensure that it can
|
the hardware-accelerated renderer, test your application to ensure that it can
|
||||||
@ -587,9 +589,9 @@ Permissions</a>.
|
|||||||
</p></dd>
|
</p></dd>
|
||||||
|
|
||||||
<dt><a name="proc"></a>{@code android:process}</dt>
|
<dt><a name="proc"></a>{@code android:process}</dt>
|
||||||
<dd>The name of the process in which the activity should run. Normally,
|
<dd>The name of the process in which the activity should run. Normally,
|
||||||
all components of an application run in the default process created for the
|
all components of an application run in the default process created for the
|
||||||
application. It has the same name as the application package. The <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element's
|
application. It has the same name as the application package. The <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element's
|
||||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code>
|
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code>
|
||||||
attribute can set a different default for all components. But each component
|
attribute can set a different default for all components. But each component
|
||||||
can override the default, allowing you to spread your application across
|
can override the default, allowing you to spread your application across
|
||||||
@ -706,7 +708,7 @@ activity started for the first time.
|
|||||||
A "{@code true}" setting ensures that the activity can be restarted in the
|
A "{@code true}" setting ensures that the activity can be restarted in the
|
||||||
absence of retained state. For example, the activity that displays the
|
absence of retained state. For example, the activity that displays the
|
||||||
home screen uses this setting to make sure that it does not get removed if it
|
home screen uses this setting to make sure that it does not get removed if it
|
||||||
crashes for some reason.
|
crashes for some reason.
|
||||||
</p></dd>
|
</p></dd>
|
||||||
|
|
||||||
<dt><a name="aff"></a>{@code android:taskAffinity}</dt>
|
<dt><a name="aff"></a>{@code android:taskAffinity}</dt>
|
||||||
|
Reference in New Issue
Block a user