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
API stubs and fixes for composeUI
This commit is contained in:
@@ -29,4 +29,34 @@ public class Layout {
|
||||
public void draw(Canvas canvas) {}
|
||||
|
||||
public int getParagraphDirection(int line) {return 0;}
|
||||
|
||||
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;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user