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

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

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