org.robolectric.shadows.ShadowLayoutAnimationController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
package org.robolectric.shadows;
import android.view.animation.LayoutAnimationController;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
@Implements(LayoutAnimationController.class)
public class ShadowLayoutAnimationController {
@RealObject
private LayoutAnimationController realAnimation;
private int loadedFromResourceId = -1;
public void setLoadedFromResourceId(int loadedFromResourceId) {
this.loadedFromResourceId = loadedFromResourceId;
}
public int getLoadedFromResourceId() {
if (loadedFromResourceId == -1) {
throw new IllegalStateException("not loaded from a resource");
}
return loadedFromResourceId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy