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
TextView: add stubs to fix RecyclerView demo apk
The views_widgets_samples_flower_finder.apk was broken, because of recent changes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package android.text;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
|
||||
public class StaticLayout extends Layout {
|
||||
|
||||
private CharSequence text;
|
||||
@@ -16,4 +18,16 @@ public class StaticLayout extends Layout {
|
||||
public CharSequence getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
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;}
|
||||
|
||||
public void draw(Canvas canvas) {}
|
||||
}
|
||||
|
||||
@@ -203,4 +203,8 @@ public class TextView extends View {
|
||||
public int getCurrentTextColor() {return 0;}
|
||||
|
||||
public void setSingleLine(boolean singleLine) {}
|
||||
|
||||
public int getCompoundPaddingLeft() {return 0;}
|
||||
|
||||
public int getCompoundPaddingRight() {return 0;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user