The default button background is not a color, but rather a 9-patch png image. Your best bet would be to create a similar 9-patch png image in your favorite image editing software that has a red background.
Thanks, Justin ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Sun, Oct 4, 2009 at 7:33 PM, Nicholas Key <[email protected]>wrote: > > Hi group members, > > I have a question about setting the background color for buttons. > When I am using btn.setBackgroundColor(Color.RED), the entire button > turns into a red rectangle. > > Is there actually a workaround to achieve this? > > Also what can I do to revert back to the default color of the button > (the typical plain greysh background). > > Thanks, > > Nicholas > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

