[android-developers] Re: How to draw text in rectangle

2009-08-05 Thread Kent
I don't know what you are trying to do, but if it's just simple layout stuff you may be making life more difficult for yourself than necessary. Try one of these things instead: a: use a textView and set it's background property (either to a color #argb or to a drawable). This has limitations,

[android-developers] Re: How to draw text in rectangle

2009-08-05 Thread Yusuf T. Mobile
Kent is right, the easy way is with TextView, but if you want the flexibility of placing your text and rectangle anywhere (like with a bouncing text+rectangle on the screen), then the Canvas class has drawText() and drawRect(). Yusuf Saib Android ·T· · ·Mobile· stick together The views,