Lines Matching defs:top

1000         final int top = -maxOverScrollY;
1016 } else if (newScrollY < top) {
1017 newScrollY = top;
1045 * @param topFocus look for a candidate is the one at the top of the bounds
1048 * @param top the top offset of the bounds in which a focusable must be
1055 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) {
1061 * A fully contained focusable is one where its top is below the bound's
1062 * top, and its bottom is above the bound's bottom. A partially
1075 if (top < viewBottom && viewTop < bottom) {
1081 final boolean viewIsFullyContained = (top < viewTop) && (viewBottom < bottom);
1138 mTempRect.top = getScrollY() + height;
1142 if (mTempRect.top + height > view.getBottom()) {
1143 mTempRect.top = view.getBottom() - height;
1147 mTempRect.top = getScrollY() - height;
1148 if (mTempRect.top < 0) {
1149 mTempRect.top = 0;
1152 mTempRect.bottom = mTempRect.top + height;
1154 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
1159 * method will scroll the view to the top or bottom and give the focus
1165 * to go the top of the view or
1173 mTempRect.top = 0;
1181 mTempRect.top = mTempRect.bottom - height;
1185 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom);
1189 * <p>Scrolls the view to make the area defined by <code>top</code> and
1196 * @param top the top offset of the new area to be made visible
1200 private boolean scrollAndFocus(int direction, int top, int bottom) {
1208 View newFocused = findFocusableViewInBounds(up, top, bottom);
1213 if (top >= containerTop && bottom <= containerBottom) {
1216 int delta = up ? (top - containerTop) : (bottom - containerBottom);
1300 && (mTempRect.top - delta) <= (getScrollY() + height);
1556 // leave room for top fading edge as long as rect isn't at very top
1557 if (rect.top > 0) {
1568 if (rect.bottom > screenBottom && rect.top > screenTop) {
1575 scrollYDelta += (rect.top - screenTop);
1586 } else if (rect.top < screenTop && rect.bottom < screenBottom) {
1595 // entire rect at top
1596 scrollYDelta -= (screenTop - rect.top);
1599 // make sure we aren't scrolling any further than the top our content
1745 * which means we want to scroll towards the top.