0

I am using a button which is having a thick background image.Because of that when i press the button its default higlighting color is not visible.I have tried the image with transparent background but its not working for this particular image.I want to do this programatically.Can anyone help on this? Thanks.

Narayanan S
  • 153
  • 1
  • 5
  • 18
  • do you want to use a simple images for different effects on button> like one image is light and other is dark? – user370305 Sep 08 '11 at 06:39
  • I just want the button's highlighting color should be visible when i have a thick background. – Narayanan S Sep 08 '11 at 06:43
  • I have seen from blogs that they have used button_pressed drawables and some other.Where will it be available,default or customized? – Narayanan S Sep 08 '11 at 06:43

1 Answers1

0

The default background of a button is a nine patch. If you set your own background you don't get any of the defaults anymore. If you want this you need to provide your own nine patches and a selector similar to this question: Standard Android Button with a different color

Community
  • 1
  • 1
Erdal
  • 1,472
  • 3
  • 16
  • 33
  • I have seen from blogs that they have used button_pressed drawables and some other.Where will it be available,default or customized? – Narayanan S Sep 08 '11 at 06:26