| Author |
"A View as a click Listener" V/s "setting of whole of the activity" as a listener
|
zoheb hassan
Ranch Hand
Joined: Apr 01, 2009
Posts: 146
|
|
How do they differ???
I have the Code for both
Setting a button as a Listener
Setting an activity as an listener
Can You guys help me in Understanding the Diff
Thanks
Zoheb
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
There is no difference except that when you used the anonymous inner class, you don't need to see which view was clicked but in the activity you may need to if you add on click listener to more than one view...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
zoheb hassan
Ranch Hand
Joined: Apr 01, 2009
Posts: 146
|
|
Hi Ankit thanks for responding, Can You please tell me what am i doing wrong here
|
 |
 |
|
|
subject: "A View as a click Listener" V/s "setting of whole of the activity" as a listener
|
|
|