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 CHOREOGRAPHER
          Ability to use choreographer animations.
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 LAST_CAPABILITY
          All features before this map to the ones in Capability.
static int LAST_FEATURE
          Last known feature.
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 RECYCLER_VIEW_ADAPTER
          Ability to use custom layouts for RecyclerView$Adapter.
static int RENDER
          Ability to call RenderSession.render() and RenderSession.render(long).
static int RENDER_ALL_DRAWABLE_STATES
          Ability to render all states of a StateListDrawable and return all in a single call.
static int RTL
          Ability to render RTL layouts.
static int SIMULATE_PLATFORM
          Ability to simulate older Platform Versions.
static int SYSTEM_TIME
          Ability to set system time.
static int THEME_PREVIEW_NAVIGATION_BAR
          Ability to use a layout specific to the Theme Editor Preview for the navigation bar.
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

LAST_CAPABILITY

public static final int LAST_CAPABILITY
All features before this map to the ones in Capability. Any feature greater than this is guaranteed to be not supported by a LayoutLib using the older api.

See Also:
Constant Field Values

PREFERENCES_RENDERING

public static final int PREFERENCES_RENDERING
Ability to render preferences.

See Also:
Constant Field Values

RENDER_ALL_DRAWABLE_STATES

public static final int RENDER_ALL_DRAWABLE_STATES
Ability to render all states of a StateListDrawable and return all in a single call.

See Also:
Constant Field Values

RECYCLER_VIEW_ADAPTER

public static final int RECYCLER_VIEW_ADAPTER
Ability to use custom layouts for RecyclerView$Adapter.

See Also:
Constant Field Values

SYSTEM_TIME

public static final int SYSTEM_TIME
Ability to set system time. RenderSession.setElapsedFrameTimeNanos(long) RenderSession.setSystemBootTimeNanos(long) RenderSession.setSystemTimeNanos(long)

See Also:
Constant Field Values

CHOREOGRAPHER

public static final int CHOREOGRAPHER
Ability to use choreographer animations.

See Also:
Constant Field Values

THEME_PREVIEW_NAVIGATION_BAR

public static final int THEME_PREVIEW_NAVIGATION_BAR
Ability to use a layout specific to the Theme Editor Preview for the navigation bar.

See Also:
Constant Field Values

LAST_FEATURE

public static final int LAST_FEATURE
Last known feature.

This should be avoided on the LayoutLib since, since using this makes updating the API used by the LayoutLib without implementing any newly added features.

See Also:
Constant Field Values
Constructor Detail

Features

public Features()