Changes

Jump to: navigation, search
Event Listeners and Callback Methods
* '''onClickListener''' – Used to detect click style events whereby the user touches and then releases an area of the Kindle Fire display occupied by a view. Corresponds to the onClick() callback method which is passed a reference to the view that received the event as an argument.
* '''onLongClickListener''' – Used to detect when the user maintains the touch over a view for an extended period of time. Corresponds to the onLongClick() callback method which is passed the view that received the event as an argument.
* '''onTouchListener''' – Used to detect any form of contact with the touch screen including individual or multiple touches and gesture motions. Corresponding with the onTouch() callback, this topic will be covered in greater detail in the chapter entitled Android Touch and Multi-touch Event Handling. The callback method is passed the view that received the event and a MotionEvent object as arguments.
* '''onCreateContextMenuListener''' – Listens for the creation of a context menu as the result of a long click. Corresponds to the onCreateContextMenu() callback method. Callback is passed the menu, the view that received the event and a menu context object.

Navigation menu