[android-developers] Re: Homescreen widget - sizing font to fit content.

2012-12-05 Thread Piren
his suggestion is a step in the right direction... it just takes some work to accomplish properly. Android does not have a text widget that automatically resizes the font to fit the available space, so you'd have to create one... if you don't want to start from scratch, just do a search for aut

[android-developers] Re: Homescreen widget - sizing font to fit content.

2012-12-05 Thread MarkG123
Hmm, not had any luck with this. Anyone else ever got something working? Seems like a very simple requirement to achieve that's possibly unachievable... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: Homescreen widget - sizing font to fit content.

2012-11-27 Thread bob
Maybe use this function in the Paint class: public float measureText (String text) Added in API level 1 Return the width of the text. Parameters text The text to measure. Cannot be null. Returns The width of the text On Tuesday, November 27, 2012 1:15:53 PM UTC-6, MarkG123 wrote: > > Hi, trying