Saturday, January 23, 2010

[android-developers] Re: TextView Dynamic Size

You could possibly extend a TextView and check for the cases...

So, if text goes out of the screen minimize the font size... and if
there is space left make it larger...
I think you are going to need to check these limits and create some
algorithm to get your font size?

-Moto

On Jan 22, 4:40 pm, Scott <sag5...@gmail.com> wrote:
> I want to create a TextView that will stretch the width of the screen
> and use a textsize that will keep the text on one line and fill the
> width. So bigger words would be smaller fontsize and smaller words
> would be bigger font size. I tried digging around in the docs under
> TextView but could not find what I needed.
>
> Any suggestions? Thanks!

--
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


Real Estate