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
EditText: implement addTextChangedListener()
This commit is contained in:
@@ -2,6 +2,7 @@ package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public class EditText extends TextView {
|
||||
@@ -16,6 +17,7 @@ public class EditText extends TextView {
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
protected native String native_getText(long widget);
|
||||
protected native void native_addTextChangedListener(long widget, TextWatcher watcher);
|
||||
|
||||
public Editable getText() {
|
||||
return new FIXME_Editable(native_getText(widget));
|
||||
@@ -58,4 +60,9 @@ public class EditText extends TextView {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addTextChangedListener(TextWatcher watcher) {
|
||||
native_addTextChangedListener(widget, watcher);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user