Lines Matching defs:top

928      * @param topFocus look for a candidate is the one at the top of the bounds
931 * @param top the top offset of the bounds in which a focusable must be
938 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) {
944 * A fully contained focusable is one where its top is below the bound's
945 * top, and its bottom is above the bound's bottom. A partially
958 if (top < viewBottom && viewTop < bottom) {
964 final boolean viewIsFullyContained = (top < viewTop) &&
1023 mTempRect.top = getScrollY() + height;
1027 if (mTempRect.top + height > view.getBottom()) {
1028 mTempRect.top = view.getBottom() - height;
1032 mTempRect.top = getScrollY() - height;
1033 if (mTempRect.top < 0) {
1034 mTempRect.top = 0;
1037 mTempRect.bottom = mTempRect.top + height;
1039 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
1044 * method will scroll the view to the top or bottom and give the focus
1050 * to go the top of the view or
1058 mTempRect.top = 0;
1066 mTempRect.top = mTempRect.bottom - height;
1070 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
1074 * <p>Scrolls the view to make the area defined by <code>top</code> and
1081 * @param top the top offset of the new area to be made visible
1085 private boolean scrollAndFocus(int direction, int top, int bottom) {
1093 View newFocused = findFocusableViewInBounds(up, top, bottom);
1098 if (top >= containerTop && bottom <= containerBottom) {
1101 int delta = up ? (top - containerTop) : (bottom - containerBottom);
1185 && (mTempRect.top - delta) <= (getScrollY() + height);
1422 // leave room for top fading edge as long as rect isn't at very top
1423 if (rect.top > 0) {
1434 if (rect.bottom > screenBottom && rect.top > screenTop) {
1441 scrollYDelta += (rect.top - screenTop);
1452 } else if (rect.top < screenTop && rect.bottom < screenBottom) {
1461 // entire rect at top
1462 scrollYDelta -= (screenTop - rect.top);
1465 // make sure we aren't scrolling any further than the top our content
1618 * which means we want to scroll towards the top.