Live Character Count For EditText Android
Posted
by Taylor Perkins
on Stack Overflow
See other posts from Stack Overflow
or by Taylor Perkins
Published on 2010-06-10T11:08:59Z
Indexed on
2010/06/10
11:12 UTC
Read the original article
Hit count: 381
android
Hello,
I was wondering what the best way to do a live character count of an edit-text box is in Android. I was looking at this but I couldn't seem to make any sense of it.
To describe the problem, I have an EditText and I'm trying to limit the characters to 150. I can do this with an input filter, however I want to show right below the text box the number of characters a user has entered(Almost like stack overflow is doing right now).
If someone could write a small snippet of example code or point me in the right direction I'd appreciate it a lot.
Thanks in advance.
© Stack Overflow or respective owner