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
implement more APIs
This commit is contained in:
@@ -20,6 +20,7 @@ public class EditText extends TextView {
|
||||
protected native String native_getText(long widget);
|
||||
protected native void native_addTextChangedListener(long widget, TextWatcher watcher);
|
||||
protected native void native_setOnEditorActionListener(long widget, OnEditorActionListener l);
|
||||
protected native void native_setText(long widget, String text);
|
||||
|
||||
public Editable getText() {
|
||||
return new SpannableStringBuilder(native_getText(widget));
|
||||
@@ -30,7 +31,9 @@ public class EditText extends TextView {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setText(CharSequence text) {}
|
||||
public void setText(CharSequence text) {
|
||||
native_setText(widget, String.valueOf(text));
|
||||
}
|
||||
@Override
|
||||
public void setTextSize(float size) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user