|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.rendering.api.Features
public class Features
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 |
|---|
public static final int UNBOUND_RENDERING
public static final int CUSTOM_BACKGROUND_COLOR
RenderParams.setOverrideBgColor(int)
public static final int RENDER
RenderSession.render() and RenderSession.render(long).
public static final int LAYOUT_ONLY
SessionParams.setLayoutOnly()
public static final int EMBEDDED_LAYOUT
ILayoutPullParser.getParser(String)
public static final int VIEW_MANIPULATION
RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)RenderSession.setProperty(Object, String, String)
public static final int PLAY_ANIMATION
RenderSession.animate(Object, String, boolean, IAnimationListener)
public static final int ANIMATED_VIEW_MANIPULATION
RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)RenderSession.removeChild(Object, IAnimationListener)
public static final int FULL_ANIMATED_VIEW_MANIPULATION
RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)
public static final int ADAPTER_BINDING
public static final int EXTENDED_VIEWINFO
public static final int FIXED_SCALABLE_NINE_PATCH
public static final int RTL
public static final int ACTION_BAR
public static final int SIMULATE_PLATFORM
public static final int LAST_CAPABILITY
Capability. Any feature greater than this
is guaranteed to be not supported by a LayoutLib using the older api.
public static final int PREFERENCES_RENDERING
public static final int RENDER_ALL_DRAWABLE_STATES
public static final int RECYCLER_VIEW_ADAPTER
public static final int SYSTEM_TIME
RenderSession.setElapsedFrameTimeNanos(long)
RenderSession.setSystemBootTimeNanos(long)
RenderSession.setSystemTimeNanos(long)
public static final int CHOREOGRAPHER
public static final int THEME_PREVIEW_NAVIGATION_BAR
public static final int LAST_FEATURE
| Constructor Detail |
|---|
public Features()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||