Code example for AbsListView

Methods: getContext

0
		} 
	}; 
 
	public DragDropper(AbsListView view) {
		absListView = view;
		decorView = ((Activity)view.getContext()).getWindow().getDecorView();
		dragee = new ImageView(view.getContext());
		windowManager = (WindowManager)view.getContext().getSystemService("window");
		layoutParams = new WindowManager.LayoutParams();
		layoutParams.height	= WindowManager.LayoutParams.WRAP_CONTENT;
		layoutParams.width	= WindowManager.LayoutParams.WRAP_CONTENT;
		layoutParams.flags	= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
							| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
							| WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
							| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;
		layoutParams.format	= PixelFormat.TRANSLUCENT;
		layoutParams.gravity= Gravity.TOP | Gravity.LEFT;
	} 
	public boolean onItemLongClick(AdapterView<?> adapter, View view, int pos, long id) {
		Rect frame = new Rect();
		decorView.getWindowVisibleDisplayFrame(frame);