Forgot!
For your button you want to declare the background to point to your
xml with the button stages definition...


On Sep 8, 12:43 pm, Moto <medicalsou...@gmail.com> wrote:
> 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 <taw...@gmail.com> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to