
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 shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.os.Build.VERSION_CODES;
import android.widget.LinearLayout;
import org.robolectric.annotation.Implementation;
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;
@Implementation(minSdk = VERSION_CODES.N)
public int getGravity() {
return ReflectionHelpers.getField(realObject, "mGravity");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy