Dynamic TextView.textSize

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Dynamic TextView.textSize

Postby d80harri » Fri Mar 27, 2009 8:20 pm

In my first android application I use a TextView to display strings that are loaded from SQLite. This TextView is the only View in the Layout and the String may contain one or more words, seperated by spaces, ",", ".", ...

I want the font size to be as huge as possible but the text shall not exceed the horizontal or vertical boundaries of the screen.

This means the more chars the text contain the smaller to choose the font-size. Furthermore, word wrapping should be enabled but schould only wrap at space, ",", ".", .... and not within a word.

I stick on this problem. Maybe there are any creative ideas out there.
Des fois on n'sait pas bien ce qui s'passe.
Posts: 2
Joined: Fri Mar 27, 2009 7:52 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 10 guests