Lines Matching defs:rect
1519 * If rect is off screen, scroll just enough to get it (or at least the
1522 * @param rect The rectangle.
1526 private boolean scrollToChildRect(Rect rect, boolean immediate) {
1527 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1544 * @param rect The rect.
1547 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
1556 // leave room for top fading edge as long as rect isn't at very top
1557 if (rect.top > 0) {
1561 // leave room for bottom fading edge as long as rect isn't at very bottom
1562 if (rect.bottom < getChildAt(0).getHeight()) {
1568 if (rect.bottom > screenBottom && rect.top > screenTop) {
1573 if (rect.height() > height) {
1575 scrollYDelta += (rect.top - screenTop);
1577 // get entire rect at bottom of screen
1578 scrollYDelta += (rect.bottom - screenBottom);
1586 } else if (rect.top < screenTop && rect.bottom < screenBottom) {
1591 if (rect.height() > height) {
1593 scrollYDelta -= (screenBottom - rect.bottom);
1595 // entire rect at top
1596 scrollYDelta -= (screenTop - rect.top);