am b2893591: Merge "LayoutLib: only support animator-type animations." into honeycomb
* commit 'b289359170bc957aad14d65f725e9b6ef18a42f4': LayoutLib: only support animator-type animations.
This commit is contained in:
@@ -48,7 +48,6 @@ public class BridgeConstants {
|
|||||||
|
|
||||||
public final static String PREFIX_ANDROID = "android:";
|
public final static String PREFIX_ANDROID = "android:";
|
||||||
|
|
||||||
public final static String RES_ANIM = "anim";
|
|
||||||
public final static String RES_ANIMATOR = "animator";
|
public final static String RES_ANIMATOR = "animator";
|
||||||
public final static String RES_STYLE = "style";
|
public final static String RES_STYLE = "style";
|
||||||
public final static String RES_ATTR = "attr";
|
public final static String RES_ATTR = "attr";
|
||||||
|
|||||||
@@ -505,18 +505,18 @@ public class RenderSessionImpl {
|
|||||||
ResourceValue animationResource = null;
|
ResourceValue animationResource = null;
|
||||||
int animationId = 0;
|
int animationId = 0;
|
||||||
if (isFrameworkAnimation) {
|
if (isFrameworkAnimation) {
|
||||||
animationResource = mContext.getFrameworkResource(BridgeConstants.RES_ANIM,
|
animationResource = mContext.getFrameworkResource(BridgeConstants.RES_ANIMATOR,
|
||||||
animationName);
|
animationName);
|
||||||
if (animationResource != null) {
|
if (animationResource != null) {
|
||||||
animationId = Bridge.getResourceValue(BridgeConstants.RES_ANIM,
|
animationId = Bridge.getResourceValue(BridgeConstants.RES_ANIMATOR,
|
||||||
animationName);
|
animationName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
animationResource = mContext.getProjectResource(BridgeConstants.RES_ANIM,
|
animationResource = mContext.getProjectResource(BridgeConstants.RES_ANIMATOR,
|
||||||
animationName);
|
animationName);
|
||||||
if (animationResource != null) {
|
if (animationResource != null) {
|
||||||
animationId = mContext.getProjectCallback().getResourceValue(
|
animationId = mContext.getProjectCallback().getResourceValue(
|
||||||
BridgeConstants.RES_ANIM, animationName);
|
BridgeConstants.RES_ANIMATOR, animationName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user