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

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

package org.robolectric.shadows;

import android.widget.AbsoluteLayout;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;

/**
 * Shadow for {@link android.widget.AbsoluteLayout}.
 */
@SuppressWarnings({"UnusedDeclaration"})
@Implements(AbsoluteLayout.class)
public class ShadowAbsoluteLayout extends ShadowViewGroup {

  /**
   * Shadow for {@link android.widget.AbsoluteLayout.LayoutParams}.
   */
  @Implements(AbsoluteLayout.LayoutParams.class)
  public static class ShadowLayoutParams extends ShadowViewGroup.ShadowLayoutParams {
    @RealObject
    AbsoluteLayout.LayoutParams realLayoutParams;

    public void __constructor__(int width, int height, int x, int y) {
      realLayoutParams.width = width;
      realLayoutParams.height = height;
      realLayoutParams.x = x;
      realLayoutParams.y = y;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy