Re: [android-developers] Re: grey rectangle

2012-07-27 Thread Nick Fedesna
Yes, while it's really more of an outer glow, if you keep the radius small, 1 or 2 dp, it does seem like solid stroke. I've used this hack myself. On Thursday, July 26, 2012 11:01:52 AM UTC-5, MagouyaWare wrote: > > You can emulate stroked text by setting the Shadow Color (stroke color) >> and

Re: [android-developers] Re: grey rectangle

2012-07-26 Thread Justin Anderson
> > You can emulate stroked text by setting the Shadow Color (stroke color) > and Shadow Radius (stroke width) but leaving the Shadow Dx and Dy as zero. > Oh, good idea! If that gives the results he wants then he wouldn't need to subclass Button at all... Thanks, Justin Anderson MagouyaWare Deve

Re: [android-developers] Re: grey rectangle

2012-07-26 Thread Nick Fedesna
You can emulate stroked text by setting the Shadow Color (stroke color) and Shadow Radius (stroke width) but leaving the Shadow Dx and Dy as zero. -Nick On Tuesday, July 24, 2012 1:31:41 PM UTC-5, MagouyaWare wrote: > > There really is no way for adding a stroke to text... I believe you asked

Re: [android-developers] Re: grey rectangle

2012-07-24 Thread Justin Anderson
There really is no way for adding a stroke to text... I believe you asked about that in another post. To do that you would need to subclass Button... And then you would need to do a whole lot of work in the onDraw() method. I don't know if that would be worth the effort. Even if you decide it is

Re: [android-developers] Re: grey rectangle

2012-07-24 Thread bob
The text. On Tuesday, July 24, 2012 9:14:28 AM UTC-5, MagouyaWare wrote: > > Stroking for what? The button or the text? > On Jul 24, 2012 7:58 AM, "bob" wrote: > >> And to achieve stroking? >> >> On Monday, July 23, 2012 3:59:05 PM UTC-5, Nobu Games wrote: >>> >>> Why don't you just create a stat

Re: [android-developers] Re: grey rectangle

2012-07-24 Thread Justin Anderson
Stroking for what? The button or the text? On Jul 24, 2012 7:58 AM, "bob" wrote: > And to achieve stroking? > > On Monday, July 23, 2012 3:59:05 PM UTC-5, Nobu Games wrote: >> >> Why don't you just create a state list drawable based on 9-patch images >> instead of hacking redundant drawing operat