org.robolectric.shadows.ShadowStaticLayout Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.text.StaticLayout;
import org.robolectric.annotation.HiddenApi;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
/**
* Shadow for {@link android.text.StaticLayout}.
*/
@Implements(value = StaticLayout.class, looseSignatures = true)
public class ShadowStaticLayout {
@Implementation @HiddenApi
public static int[] nLineBreakOpportunities(String locale, char[] text, int length, int[] recycle) {
return new int[] {-1};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy