How to determine the amount of characters that will fit into a TextView

by » Fri, 10 Apr 2009 06:11:55 GMT

Sponsored Links
 I am trying to place only the exact amount of data into a TextView but
I need to know how much it can hold.  Is there a way to do this based
on it's height, width and the textsize?

How to determine the amount of characters that will fit into a TextView

by nEx.Software » Fri, 10 Apr 2009 21:05:25 GMT

 I'd say if you know the text you want to put into the TextView, you
should be able to measure the text and compare to the size of the
TextView... In the API Demos, there is a measure text sample. I'd
start there.

On Apr 9, 3:11pm, "" <>


Sponsored Links

Other Threads

1. Puzzel Alarm [In progress

I have created a Puzzel Alarm which should help me to get out of bed.
When an alarm goes of the snooze or dismiss button are easily pressed.
So I wanted to make an application that shows a puzzel before the
alarm can be dismissed. I'm still working on it, but some more info
and an installable version can be found in this post on my site There are also some screenshots. Can I ask some of
you to test the application and give some problems, remarks,
(performance) tips, ... to make my application better?


2. How to update my database with an xml hosted on a website?

Good morning everyone,
I am new to programming with Java and Android,
I'm trying to make an application to seek an xml in a web address and
contains information that should be saved in my sql lite ...
The doubt is as follows:
I have to download and save the xml file on the device or can
just work with it in memory,
xml = xml.create ( / meuxml.xml);
how would you do?

Excuse me for English if they contain errors,
because my English is not very good, I'm using google translator ...
Thanks already.


3. Query on type of solution

4. Business multi-tier application with android client

5. Exported apk will not install, no error message

6. New to Android - Can't add Platform

7. SIGH ... Android & SOAP