Setting the scaleType to centerInside did the trick. Sorry if I wasted
your time!

On 13 Jan, 12:27, Schoel <[email protected]> wrote:
> Hello,
>
> I have created a 9patch image which I would like to use as border on
> ImageButtons and ImageViews. However, when I set the drawable (with
> setImageResource) to a drawable that's larger than the ImageButton
> size, the border (which is set with android:background) the border
> gets hidden behind the drawable. I've set the optional Padding box in
> the 9patch and it seems this is not respected by the ImageButton. Any
> ideas on how I can solve this?
>
> /Schoel

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