True, android.graphics does not have the top/bottom feature, but with Paint.getFontMetrics(), you can compute all sorts of interesting vertical metrics for the font, and apply them to the baseline.
mike On Sep 11, 2008, at 10:24 AM, JT wrote: I would refrain from using any javax.microedition.* classes. You can set alignment via android.graphics.Paint.Align, however it does not have the same top/bottom feature as J2ME. http://code.google.com/android/reference/android/graphics/Paint.Align.html On Sep 10, 8:51 pm, Sudha <[EMAIL PROTECTED]> wrote: > I was using M5 .Now I switched my application to SDK 0.9. > I am getting the error on eclipse that > the import javax.microedition.lcdui.Graphics cannot be resolved. > In my program I am using the > Graphics.TOP|Grpahics.LEFT. > > Can any one help me to find > whether that option is removed , why and anywhere else it is > implemented ? > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

