January 2014
Intermediate to advanced
736 pages
70h 43m
English
Figure 4.25 declares and initializes instance variable itemLongClickListener, which refers to an anonymous inner-class object that implements interface OnItemLongClickListener. Line 70 (Fig. 4.20) registered itemLongClickListener as the ListView’s event handler that responds when the user long presses an item in the ListView. Lines 153–210 override interface OnItemLongClickListener’s onItemLongClick method.
148 // itemLongClickListener displays a dialog allowing the user to delete149 // or edit a saved search150 OnItemLongClickListener itemLongClickListener =151 new OnItemLongClickListener() ...
Read now
Unlock full access