Views become available focus movement is based on an

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: d(R.id.corky); bu8on.setOnClickListener(this); } // Implement the OnClickListener callback public void onClick(View v) { // do something when the bu8on is clicked } ... } COMP 4521 (Muppala) Android UI Overview 28 Event Listeners •  Depending on the event, some event listener methods must return a (boolean) value to indicate whether they have consumed the event and the event should not be carried further. –  onLongClick() •  Return true to indicate that it has handled the event and it should stop here; return false if it hasnot handled it and/or the event should con7nue to any other on- click listeners. –  onKey() •  Return true to indicate that it has handled the event and it should stop here; return false if it has not handled it and/or the event should con7nue to any other...
View Full Document

This document was uploaded on 03/12/2014.

Ask a homework question - tutors are online