Code example for ContextMenu

Methods: addgetItem

0
	 */ 
	OnCreateContextMenuListener cmenu_text = new OnCreateContextMenuListener() {
		@Override 
		public void onCreateContextMenu(ContextMenu menu, View v, 
				ContextMenuInfo menuInfo) { 
			menu.add("elimina testo"); 
			menu.getItem(0).setOnMenuItemClickListener(new OnMenuItemClickListener() { 
				@Override 
				public boolean onMenuItemClick(MenuItem item) { 
					deleteText(); 
					return true; 
				} 
			}); 
		} 
	}; 
	 
	/** 
	 *  
	 */ 
	OnCreateContextMenuListener cmenu_text_edit = new OnCreateContextMenuListener() {
		@Override