October 2018
Intermediate to advanced
464 pages
15h 17m
English
Although a button is typically used to indicate where a user should press, we could have used both setOnClickListener() and setOnLongClickListener() with any View, or even a TextView.
As mentioned in the introduction, there are other Event Listeners. You can use Android Studio's auto-complete feature to bring up a list of available listeners by typing the following:
button.setOn
As you start typing, you'll see a list of available choices with Android Studio's auto-complete list.