• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

events button

 
Alejandro rodri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to capture events pushing and leaving a button or image button but I don't know how to do it....please can somebody help me?
And maybe an event when I have my finger over the button...
Thanks!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check their respective javadocs - android.widget.Button has a whole bunch of listeners you can add to it, many of them inherited from the android.view.View class (like setOnClickListener and setOnHoverListener).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic