Onkey return true to indicate that it has handled the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: which the listener has been registered is triggered by user interac7on with the item in the UI •  Several callback methods available: onClick(), onLongClick(), onFocusChange(), onKey(), onTouch(), onCreateContextMenu() COMP 4521 (Muppala) Android UI Overview 25 Event Listeners •  onClick() –  From View.OnClickListener. This is called when the user either touches the item (when in touch mode), or focuses upon the item with the naviga7on- keys or trackball and presses the suitable "enter" key or presses down on the trackball. •  onLongClick() –  From View.OnLongClickListener. This is called when the user either touches and holds the item (when in touch mode), or focuses upon the item with the naviga7on- keys or trackball and presses and holds the suitable "enter"...
View Full Document

This document was uploaded on 03/12/2014.

Ask a homework question - tutors are online