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

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

package org.robolectric.shadows;

import android.widget.LinearLayout;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers;

/**
 * Shadow for {@link android.widget.LinearLayout}.
 */
@Implements(LinearLayout.class)
public class ShadowLinearLayout extends ShadowViewGroup {
  @RealObject LinearLayout realObject;

  public int getGravity() {
    return ReflectionHelpers.getField(realObject, "mGravity");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy