Re: [android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Nikolay Elenkov
On Tue, Jun 21, 2011 at 4:47 AM, Jake Colman wrote: >> "NE" == Nikolay Elenkov writes: > >   NE> On Mon, Jun 20, 2011 at 11:06 PM, Jake Colman wrote: >   >> >   >> I realize that this is not a programming question but I'm hoping >   >> someone here can help with a quick solution. >   >> >  

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Jake Colman
> "NE" == Nikolay Elenkov writes: NE> On Mon, Jun 20, 2011 at 11:06 PM, Jake Colman wrote: >> >> I realize that this is not a programming question but I'm hoping >> someone here can help with a quick solution. >> >> I have a 9-patch file that I use as my widget background

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Jake Colman
Kostyra, Thanks for trying to help. The problem turned out to be that the image has an alpha channel (transparency) that is simply way bigger than I'd like. After trying a number of things, I found that a 'zealous autocrop' resized the image but kept some transparency around the edges. As a 9-

Re: [android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Kostya Vasilyev
The file is a nine-patch, and should fill the view automatically. And I'm sorry to say, it does that just fine for all my widgets. If you think the issue is with this particular file, you could try testing with one of the nine-patches under \platforms\android-X\data\res. Other than that, you coul

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Jake Colman
Kostya, The background is specified in XML exactly as you suggested. When I click and hold on the widget to drag it, Android's outline box is larger than the widget itself. If I write code to invoke setBackgroundColor() in lieu of setbackgroundresource() the color fills in a larger square than

Re: [android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Kostya Vasilyev
I just dropped the image into my project, and set it as an android:background for a layout (activity, not wiget). It worked fine. It's a good sign that your widget is getting filled with color - perhaps there is something unusual about how you set the background? I would try the simplest thing p

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread Jake Colman
Using some new preference settings in my widget, the user can completely replace the background image with a color. When I do that, the painted area is quite a bit larger than the area covered when I use the background image. I think that is the equivalent of what you asked me to check, correct?

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread ThaMe90
What exactly is your problem? On 20 jun, 16:06, Jake Colman wrote: > I realize that this is not a programming question but I'm hoping someone > here can help with a quick solution. > > I have a 9-patch file that I use as my widget background.  I did not > create it, I found it on the web.  I am us