All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowLayoutAnimationController Maven / Gradle / Ivy

There is a newer version: 4.14
Show newest version
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