com.android.ide.common.rendering.api
Enum Capability

java.lang.Object
  extended by java.lang.Enum<Capability>
      extended by com.android.ide.common.rendering.api.Capability
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Capability>

public enum Capability
extends java.lang.Enum<Capability>

Enum describing the layout bridge capabilities.


Enum Constant Summary
ADAPTER_BINDING
           
ANIMATED_VIEW_MANIPULATION
          Ability to manipulate views with animation, as long as the view does not change parent.
CUSTOM_BACKGROUND_COLOR
          Ability to override the background of the rendering with transparency using RenderParams.setOverrideBgColor(int)
EMBEDDED_LAYOUT
          Ability to control embedded layout parsers through ILayoutPullParser.getParser(String)
EXTENDED_VIEWINFO
           
FIXED_SCALABLE_NINE_PATCH
          Ability to properly resize nine-patch assets.
FULL_ANIMATED_VIEW_MANIPULATION
          Ability to move views (even into a different ViewGroup) with animation.
LAYOUT_ONLY
          Ability to ask for a layout only with no rendering through SessionParams.setLayoutOnly()
PLAY_ANIMATION
          Ability to play animations with
RenderSession.animate(Object, String, boolean, IAnimationListener)
RENDER
          Ability to call RenderSession.render() and RenderSession.render(long).
RTL
          Ability to render RTL layouts.
UNBOUND_RENDERING
          Ability to render at full size, as required by the layout, and unbound by the screen
VIEW_MANIPULATION
          Ability to call
RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)
RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)
RenderSession.setProperty(Object, String, String)
The method that receives an animation listener can only use it if the ANIMATED_VIEW_MANIPULATION, or FULL_ANIMATED_VIEW_MANIPULATION is also supported.
 
Method Summary
static Capability valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Capability[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNBOUND_RENDERING

public static final Capability UNBOUND_RENDERING
Ability to render at full size, as required by the layout, and unbound by the screen


CUSTOM_BACKGROUND_COLOR

public static final Capability CUSTOM_BACKGROUND_COLOR
Ability to override the background of the rendering with transparency using RenderParams.setOverrideBgColor(int)


RENDER

public static final Capability RENDER
Ability to call RenderSession.render() and RenderSession.render(long).


LAYOUT_ONLY

public static final Capability LAYOUT_ONLY
Ability to ask for a layout only with no rendering through SessionParams.setLayoutOnly()


EMBEDDED_LAYOUT

public static final Capability EMBEDDED_LAYOUT
Ability to control embedded layout parsers through ILayoutPullParser.getParser(String)


VIEW_MANIPULATION

public static final Capability VIEW_MANIPULATION
Ability to call
RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)
RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)
RenderSession.setProperty(Object, String, String)
The method that receives an animation listener can only use it if the ANIMATED_VIEW_MANIPULATION, or FULL_ANIMATED_VIEW_MANIPULATION is also supported.


PLAY_ANIMATION

public static final Capability PLAY_ANIMATION
Ability to play animations with
RenderSession.animate(Object, String, boolean, IAnimationListener)


ANIMATED_VIEW_MANIPULATION

public static final Capability ANIMATED_VIEW_MANIPULATION
Ability to manipulate views with animation, as long as the view does not change parent. RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)
RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)
RenderSession.removeChild(Object, IAnimationListener)


FULL_ANIMATED_VIEW_MANIPULATION

public static final Capability FULL_ANIMATED_VIEW_MANIPULATION
Ability to move views (even into a different ViewGroup) with animation. see RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)


ADAPTER_BINDING

public static final Capability ADAPTER_BINDING

EXTENDED_VIEWINFO

public static final Capability EXTENDED_VIEWINFO

FIXED_SCALABLE_NINE_PATCH

public static final Capability FIXED_SCALABLE_NINE_PATCH
Ability to properly resize nine-patch assets.


RTL

public static final Capability RTL
Ability to render RTL layouts.

Method Detail

values

public static Capability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Capability c : Capability.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Capability valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null