我想用这种方式写unicode
字符:EditText
final EditText et = (EditText) findViewById(R.id.editText1);
TextWatcher tw = new TextWatcher() {
public void afterTextChanged(Editable s){
}
public void beforeTextChanged(CharSequence s, int start, int count, int after){
}
public void onTextChanged (CharSequence s, int start, int before,int count) {
if(s.equals("a")){
et.append("\u0627");
}
}
};
et.addTextChangedListener(tw);
但这只会写英文chracter
,EditText
如何解决这个问题。提前致谢。