com.android.ide.common.rendering.api
Class Features

java.lang.Object
  extended by com.android.ide.common.rendering.api.Features

public class Features
extends java.lang.Object

List of features describing the LayoutLib capabilities.


Field Summary
static int ACTION_BAR
          Ability to render ActionBar.
static int ADAPTER_BINDING
           
static int ANIMATED_VIEW_MANIPULATION
          Ability to manipulate views with animation, as long as the view does not change parent.
static int CUSTOM_BACKGROUND_COLOR
          Ability to override the background of the rendering with transparency using RenderParams.setOverrideBgColor(int)
static int EMBEDDED_LAYOUT
          Ability to control embedded layout parsers through ILayoutPullParser.getParser(String)
static int EXTENDED_VIEWINFO
           
static int FIXED_SCALABLE_NINE_PATCH
          Ability to properly resize nine-patch assets.
static int FULL_ANIMATED_VIEW_MANIPULATION
          Ability to move views (even into a different ViewGroup) with animation.
static int LAYOUT_ONLY
          Ability to ask for a layout only with no rendering through SessionParams.setLayoutOnly()
static int PLAY_ANIMATION
          Ability to play animations with
RenderSession.animate(Object, String, boolean, IAnimationListener)
static int PREFERENCES_RENDERING
          Ability to render preferences.
static int RENDER
          Ability to call RenderSession.render() and RenderSession.render(long).
static int RTL
          Ability to render RTL layouts.
static int SIMULATE_PLATFORM
          Ability to simulate older Platform Versions.
static int UNBOUND_RENDERING
          Ability to render at full size, as required by the layout, and unbound by the screen
static int 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.
 
Constructor Summary
Features()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNBOUND_RENDERING

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

See Also:
Constant Field Values

CUSTOM_BACKGROUND_COLOR

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

See Also:
Constant Field Values

RENDER

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

See Also:
Constant Field Values

LAYOUT_ONLY

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

See Also:
Constant Field Values

EMBEDDED_LAYOUT

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

See Also:
Constant Field Values

VIEW_MANIPULATION

public static final int 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.

See Also:
Constant Field Values

PLAY_ANIMATION

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

See Also:
Constant Field Values

ANIMATED_VIEW_MANIPULATION

public static final int 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)

See Also:
Constant Field Values

FULL_ANIMATED_VIEW_MANIPULATION

public static final int 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)

See Also:
Constant Field Values

ADAPTER_BINDING

public static final int ADAPTER_BINDING
See Also:
Constant Field Values

EXTENDED_VIEWINFO

public static final int EXTENDED_VIEWINFO
See Also:
Constant Field Values

FIXED_SCALABLE_NINE_PATCH

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

See Also:
Constant Field Values

RTL

public static final int RTL
Ability to render RTL layouts.

See Also:
Constant Field Values

ACTION_BAR

public static final int ACTION_BAR
Ability to render ActionBar.

See Also:
Constant Field Values

SIMULATE_PLATFORM

public static final int SIMULATE_PLATFORM
Ability to simulate older Platform Versions.

This is the last feature supported by API 12.

See Also:
Constant Field Values

PREFERENCES_RENDERING

public static final int PREFERENCES_RENDERING
Ability to render preferences.

See Also:
Constant Field Values
Constructor Detail

Features

public Features()