On Sat, Dec 27, 2008 at 2:31 AM, Fathi <fathi.el3ash...@gmail.com> wrote: > > Dear all > how are you? > i am android begineer and i have two questions, I appreciate if any > one guide me answer me or at least a send me a reference. > > - the first question is that i want to get the width of a text > (Characters) in pixels when drawing to TextView i am using a TTF font?
You can use one of the Paint.getTextBounds variations: http://code.google.com/android/reference/android/graphics/Paint.html#getTextBounds(char[], int, int, android.graphics.Rect) R/ > > - Second, i displayed a textview with fill_parent for both width and > height and when the text exceeds the screen the top text not appear > and no scroll appears > > regards, > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---