Code example for Rect

Methods: heightwidth

0
                            this.mLongPressDetection, 
                            ViewConfiguration.getLongPressTimeout()); 
                } 
 
                // Calculate the item size 
                Rect r = new Rect(); 
                this.mFlingingView.getDrawingRect(r); 
                this.mFlingingViewWidth = r.width(); 
                this.mFlingingViewHeight = r.height(); 
 
                // Set the pressed state 
                this.mFlingingView.postDelayed(new Runnable() { 
                    @Override 
                    @SuppressWarnings("synthetic-access") 
                    public void run() { 
                        if (FlingerListView.this.mFlingingViewPressed) {
                            FlingerListView.this.mFlingingView.setPressed(true);
                            return; 
                        } 
                        FlingerListView.this.mFlingingView.setPressed(false);
                    }