You can define different button stages using pngs and declare an xml
on your drawables folder:

i.e.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>
    <item android:state_focused="true"
          android:state_pressed="false"
          android:drawable="@android:drawable/
grey_button_background_focus_blue" />
    <item android:state_focused="true"
          android:state_pressed="true"
          android:drawable="@android:drawable/
grey_button_background_pressed_blue" />
    <item android:state_focused="false"
          android:state_pressed="true"
          android:drawable="@android:drawable/
grey_button_background_pressed_blue" />
    <item android:drawable="@android:drawable/
grey_button_background_normal" />
</selector>

A little googling you find this:
http://www.gersic.com/blog.php?id=56

Moto!


On Sep 8, 11:58 am, bennyb <[email protected]> wrote:
> How do I create cool/styled buttons in android with different colors?
--~--~---------~--~----~------------~-------~--~----~
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