Code example for Point

Methods: set

0
                DragShadowBuilder shadow;
                if (icon != null) {
                    shadow = new DragShadowBuilder(this) {
                        public void onProvideShadowMetrics(Point shadowSize, Point shadowTouchPoint) {
                            shadowSize.set(icon.getWidth(), icon.getHeight());
                            shadowTouchPoint.set(shadowSize.x / 2, shadowSize.y / 2);
                        } 
                        public void onDrawShadow(Canvas canvas) {
                            canvas.drawBitmap(icon, 0, 0, new Paint());
                        } 
                    }; 
                } else { 
                    // uhhh, what now? 
                    shadow = new DragShadowBuilder(this);
                } 
 
                startDrag(clip, shadow, null, 0);
 
                // TODO: only discard the clipping if it was accepted 
                stash(null);