how to hook key event.
Posted
by backspace7
on Stack Overflow
See other posts from Stack Overflow
or by backspace7
Published on 2010-03-17T10:10:52Z
Indexed on
2010/03/17
10:21 UTC
Read the original article
Hit count: 209
android
I'd like to limit the text length of EditText widget, And if user type more charactes than the limited length, I want to show a kind of warning popup, however I can't show popup.
The problem is that we can't show popup while typing, Probably, many people think a way of utilizing OnKeyListener or OnKeyDown. But, when the word is composing, nothing come into OnKeyListener or OnKeyDown, So, we can't show popup when we want to.
Is there anyone who have smart idea to solve this problem?
© Stack Overflow or respective owner