This tutorial is more helpful and I found what i want.

http://developer.android.com/resources/tutorials/views/hello-formstuff.html#CustomButton

On Jan 26, 11:07 am, Kostya Vasilyev <[email protected]> wrote:
> Atif,
>
> You don't need to replace the image from code when the user clicks on a
> button - with a state list drawable this can be done entirely with
> resources:
>
> http://developer.android.com/guide/topics/resources/drawable-resource...
>
> -- Kostya
>
> 26.01.2011 13:03, Atif Musaddaq пишет:
>
>
>
>
>
>
>
>
>
> > Hi, Guys
>
> > a Simple Question.
>
> > I have four buttons and I am using four images for each button. is
> > there any way to replace the image when user Click on the button. I
> > want to make them more interactive. Right now it
> > seems.................... boring when user click on it, no feedback to
> > the user.
>
> > Thanks in advance.
>
> > Atif
> > --
> > 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
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

-- 
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