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?

...Jake


>>>>> "KV" == Kostya Vasilyev <[email protected]> writes:

   KV> It looks fine, and enlarges properly in draw9patch.  Are you
   KV> certain the layout where it's used as the background actually
   KV> gets larger width and / or height?

   KV> Try setting android:background="#FF008040" or some such to check.

   KV> -- Kostya

   KV> 2011/6/20 Nikolay Elenkov <[email protected]>

   >> On Mon, Jun 20, 2011 at 11:06 PM, Jake Colman <[email protected]> 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 using the image as both a 1x1
   >> > and 2x1 background depending on the widget size.  My problem is that the
   >> > background does not stretch to fill the full size of the 1x1 or 2x1
   >> > cell.
   >> 
   >> I seems the outer part is transparent, that is why it doesn't fill
   >> your full widget size. It's a trick to make widgets look smaller
   >> than the standard cell size. You need to cut out the transparent
   >> bits to make it work.
   >> 
   >> And no, no one will do your work for you.
   >> 
   >> --
   >> 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
   >> 

   KV> -- 
   KV> You received this message because you are subscribed to the Google
   KV> Groups "Android Developers" group.
   KV> To post to this group, send email to [email protected]
   KV> To unsubscribe from this group, send email to
   KV> [email protected]
   KV> For more options, visit this group at
   KV> http://groups.google.com/group/android-developers?hl=en

-- 
Jake Colman -- Android Tinkerer

-- 
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

Reply via email to