Skip to content

Most visited

Recently visited

navigation

Element.Builder

public static class Element.Builder
extends Object

java.lang.Object
   ↳ android.renderscript.Element.Builder


Builder class for producing complex elements with matching field and name pairs. The builder starts empty. The order in which elements are added is retained for the layout in memory.

Summary

Public constructors

Element.Builder(RenderScript rs)

Create a builder object.

Public methods

Element.Builder add(Element element, String name)

Add a single element to this Element.

Element.Builder add(Element element, String name, int arraySize)

Add an array of elements to this element.

Element create()

Create the element from this builder.

Inherited methods

From class java.lang.Object

Public constructors

Element.Builder

Added in API level 11
Element.Builder (RenderScript rs)

Create a builder object.

Public methods

add

Added in API level 11
Element.Builder add (Element element, 
                String name)

Add a single element to this Element.

Returns
Element.Builder

add

Added in API level 11
Element.Builder add (Element element, 
                String name, 
                int arraySize)

Add an array of elements to this element.

Returns
Element.Builder

create

Added in API level 11
Element create ()

Create the element from this builder.

Returns
Element Element
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.