question: private void createPressImageView ( View v , int x , int y ) { mWindowLayoutParams = new WindowManager . LayoutParams ( ) ; mWindowLayoutParams . gravity = Gravity . TOP | Gravity . LEFT ; mWindowLayoutParams . x = x - mPoint2ItemLeft + mOffset2Left ; mWindowLayoutParams . y = y - mPoint2ItemTop + mOffset2Top - mStatusHeight ; mWindowLayoutParams . alpha = 0.5f ; mWindowLayoutParams . width = WindowManager . LayoutParams . WRAP_CONTENT ; mWindowLayoutParams . height = WindowManager . LayoutParams . WRAP_CONTENT ; mWindowLayoutParams . flags = WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE | WindowManager . LayoutParams . FLAG_NOT_TOUCHABLE ; mDragImageView = new ImageView ( getContext ( ) ) ; v . setDrawingCacheEnabled ( true ) ; Bitmap bitmap = Bitmap . createBitmap ( v . getDrawingCache ( ) ) ; mDragImageView . setImageBitmap ( bitmap ) ; v . destroyDrawingCache ( ) ; mWindowManager . addView ( mDragImageView , mWindowLayoutParams ) ; }
target:  create a image for the pressed view