2023-08-22 14:41:01 +02:00
|
|
|
package android.text;
|
|
|
|
|
2024-05-19 15:27:43 +02:00
|
|
|
import android.graphics.Canvas;
|
|
|
|
|
2023-08-22 14:41:01 +02:00
|
|
|
public class Layout {
|
|
|
|
|
|
|
|
public enum Alignment {
|
|
|
|
ALIGN_NORMAL,
|
|
|
|
ALIGN_OPPOSITE,
|
|
|
|
ALIGN_CENTER,
|
|
|
|
ALIGN_LEFT,
|
|
|
|
ALIGN_RIGHT,
|
|
|
|
}
|
2023-12-29 11:09:37 +01:00
|
|
|
|
|
|
|
public int getLineCount() {return 1;}
|
2024-02-04 08:08:49 +01:00
|
|
|
|
|
|
|
public float getLineWidth(int line) {return 10;}
|
|
|
|
|
|
|
|
public TextPaint getPaint() {return new TextPaint();}
|
2024-02-09 16:41:37 +01:00
|
|
|
|
|
|
|
public int getEllipsisCount(int line) {return 0;}
|
2024-03-16 12:49:28 +01:00
|
|
|
|
|
|
|
public CharSequence getText() {return "FIXME Layout.getText";}
|
|
|
|
|
|
|
|
public int getWidth() {return 10;}
|
|
|
|
|
|
|
|
public int getHeight() {return 10;}
|
2024-05-19 15:27:43 +02:00
|
|
|
|
|
|
|
public void draw(Canvas canvas) {}
|
2024-08-25 11:20:01 +02:00
|
|
|
|
|
|
|
public int getParagraphDirection(int line) {return 0;}
|
2024-11-27 14:59:37 +01:00
|
|
|
|
|
|
|
public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) {
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getLineEnd(int line) {return 100;}
|
|
|
|
|
|
|
|
public int getLineStart(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getLineAscent(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getLineDescent(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getTopPadding() {return 0;}
|
|
|
|
|
|
|
|
public int getBottomPadding() {return 0;}
|
|
|
|
|
|
|
|
public float getLineLeft(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getLineBottom(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getLineBaseline(int line) {return 0;}
|
|
|
|
|
|
|
|
public boolean isRtlCharAt(int offset) {return false;}
|
|
|
|
|
|
|
|
public float getSecondaryHorizontal(int line) {return 0;}
|
|
|
|
|
|
|
|
public int getLineForVertical(int y) {return 0;}
|
|
|
|
|
|
|
|
public int getOffsetForHorizontal(int line, float x) {return 0;}
|
2023-08-22 14:41:01 +02:00
|
|
|
}
|