
org.robolectric.shadows.ShadowLinearLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.widget.LinearLayout;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers;
@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