implement more APIs

This commit is contained in:
Julian Winkler
2024-03-20 23:05:17 +01:00
parent e8dc6e2f0d
commit 494605932c
18 changed files with 119 additions and 36 deletions

View File

@@ -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) {}

View File

@@ -231,4 +231,6 @@ public class TextView extends View {
public float getLetterSpacing() {return 0.f;}
public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end, int bottom) {}
public boolean getLinksClickable() {return true;}
}