Code example for AbsListView

Methods: getContext

0
	} 
	 
	@Override 
	public void onAttachList(AbsListView list)
	{ 
		context = list.getContext();
		//list.setOnCreateContextMenuListener(this); 
	} 
	 
	@Override 
	public BaseAdapter getAdapter() { return wrapper; }
	public String getTitle() { return "Upcoming Reservations"; }
 
	public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
	{ 
		AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
		CmiReservation reservation = adapter.getItem(info.position);
		 
		int slotCount = reservation.getSlotCount(); 
		 
		String unbookText;