Re: [android-developers] Using TextWatcher class to count linebreaks
I managed to solve it. Apparently, I was using wrong regular expression. I just needed to check for "\n". Thanks though.
On Sun, Aug 5, 2012 at 9:58 AM, Farhan Tariq <farhan.blu@gmail.com> wrote:
MaxLines won't work. Like I said, I need to count number of line breaks (equal to "\n", return, newlines etc). MaxLines just returns the number of lines a piece of text takes! I could have a long sentence that would take up 5 lines, but no line break, and maxLines would return me 5, but desired number would be 1. Hope that clears my point.On Sun, Aug 5, 2012 at 9:46 AM, TreKing <trekingapp@gmail.com> wrote:On Sat, Aug 4, 2012 at 10:57 PM, Farhan Tariq <farhan.blu@gmail.com> wrote:Any suggestion/help on how to limit editText to 4 new lines?I need it urgently,
Come on now.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
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
--
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