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-impl: misc stubs and fixes for Spotify
This commit is contained in:
@@ -3,4 +3,6 @@ package android.graphics;
|
||||
public class LinearGradient extends Shader {
|
||||
|
||||
public LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, TileMode mode) {}
|
||||
public LinearGradient(float x0, float y0, float x1, float y1, long[] colors, float[] positions, TileMode tile) {}
|
||||
public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, TileMode tile) {}
|
||||
}
|
||||
|
||||
@@ -68,6 +68,10 @@ public class Paint {
|
||||
}
|
||||
public void getTextBounds(String text, int start, int end, Rect bounds) {}
|
||||
public void getTextBounds(char[] text, int index, int count, Rect bounds) {}
|
||||
public int getTextWidths(String text, int start, int end, float[] widths) {
|
||||
// TODO fix it
|
||||
return 0;
|
||||
}
|
||||
public void setFilterBitmap(boolean filter) {}
|
||||
|
||||
public void setFlags(int flags) {
|
||||
|
||||
@@ -50,6 +50,10 @@ public class Typeface {
|
||||
return typeface;
|
||||
}
|
||||
|
||||
public static Typeface createFromFile(String path) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
private static native long native_create(CharSequence family_name, int style);
|
||||
|
||||
public int getStyle() {
|
||||
|
||||
Reference in New Issue
Block a user