[android-developers] EditText onKey does not fire in android 2.1
Hi
I have came across a problem with android 2.1 EditText. It does not
fire onKey event listener.
EditText edit = (EditText) findViewById(R.id.edit);
edit.setOnKeyListener(new OnKeyListener() {
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
Log.d("TAG","onKey() - " + keyCode);
return false;
}
});
I dont see any log's print when I type any key. It works on other
platform but not in 2.1. Anyone has any idea how I can get rid of this
problem or any way around (if any). Or this is not a problem at all
and I'm being stupid using it wrong way :-)
Regards
Mohammad
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home