Maybe try putting it under "drawable-nodpi" to avoid scaling?

-- K


2014-07-19 23:45 GMT+04:00 dashman <erjdri...@gmail.com>:

> I've got a simple .9.png file.
>
> Trying to create a red background with a 1-pixel gray border.
>
> My png file is 5x5 pixels
>
> --B--
> -GGG-
> BGRG-
> -GGG-
> -----
>
> B black
> G gray - hex 999999
> R red
> - transparent
>
> The problem is when the image is displayed - it seems to display
> a gradient - gray from the edges to red in the center.
>
> I just want a 1 pixel gray border and the red pixel stretched.
>
>
> It seems to display as I want on the emulator but on the 4.4 device
> it has this gradient display.
>
> any help?
>
> p.s. this is a background to a Button or ImageButton - same behavior.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to