You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
25 lines
654 B
Java
25 lines
654 B
Java
package android.text;
|
|
|
|
public class StaticLayout extends Layout {
|
|
|
|
public StaticLayout(CharSequence source, int bufstart, int bufend,
|
|
TextPaint paint, int outerwidth,
|
|
Alignment align, TextDirectionHeuristic textDir,
|
|
float spacingmult, float spacingadd,
|
|
boolean includepad,
|
|
TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) {
|
|
super(source, paint, outerwidth, align, spacingmult, spacingadd);
|
|
}
|
|
|
|
public int getWidth() {
|
|
return 200; // arbitrary value for stub method
|
|
}
|
|
|
|
public int getHeight() {
|
|
return 50; // arbitrary value for stub method
|
|
}
|
|
|
|
public float getLineLeft(int line) {return 0;}
|
|
|
|
}
|