October 2018
Intermediate to advanced
464 pages
15h 17m
English
Almost every application needs to recognize and respond to basic events such as clicks and long-presses. It's so basic, in most recipes we use the XML onClick attribute, but more advanced listeners require to be set up through code.
Android provides an Event Listener interface for receiving a single notification when certain actions occur, as shown in the following list:
This recipe will demonstrate responding to ...