• 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: 42970
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).
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!