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
22 lines
505 B
Java
22 lines
505 B
Java
|
|
package android.text;
|
||
|
|
|
||
|
|
import android.text.Layout.Alignment;
|
||
|
|
|
||
|
|
public class StaticLayout {
|
||
|
|
|
||
|
|
private CharSequence text;
|
||
|
|
|
||
|
|
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) {
|
||
|
|
this.text = source;
|
||
|
|
}
|
||
|
|
|
||
|
|
public CharSequence getText() {
|
||
|
|
return text;
|
||
|
|
}
|
||
|
|
}
|