2023-08-22 14:41:01 +02:00
|
|
|
package android.text;
|
|
|
|
|
|
2023-09-12 23:18:47 +02:00
|
|
|
public class StaticLayout extends Layout {
|
2023-08-22 14:41:01 +02:00
|
|
|
|
|
|
|
|
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) {
|
2024-11-30 17:58:31 +01:00
|
|
|
super(source, paint, outerwidth, align, spacingmult, spacingadd);
|
2023-08-22 14:41:01 +02:00
|
|
|
}
|
2024-02-16 11:02:40 +01:00
|
|
|
|
|
|
|
|
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;}
|
|
|
|
|
|
2023-08-22 14:41:01 +02:00
|
|
|
}
|