I see

Sent from my BlackBerry® smartphone provided by Airtel Nigeria.

-----Original Message-----
From: skink <psk...@gmail.com>
Sender: android-developers@googlegroups.com
Date: Fri, 13 Jul 2012 02:13:52 
To: Android Developers<android-developers@googlegroups.com>
Reply-To: android-developers@googlegroups.com
Subject: [android-developers] Re: Hwo to use getLineCount method in TextView?
 what is the internal Layout?



Alfa wrote:
> than how to get the line count of textview. i already use
> TextView.getLayout() .getLineCount() but i have error.

you have to call it after internal layout has been built - you can for
example post runnable after calling setText() - doing so you make sure
the internal layout is built

pskink

-- 
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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to