Lines Matching refs:left

820      * (excluding fading edges) pretending that this View's left is located at
821 * the parameter left.
824 * @param leftFocus look for a candidate is the one at the left of the bounds
827 * @param left the left offset of the bounds in which a focusable must be
834 final int left, View preferredFocusable) {
841 final int leftWithoutFadingEdge = left + fadingEdgeLength;
842 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength;
859 * @param leftFocus look for a candidate is the one at the left of the bounds
862 * @param left the left offset of the bounds in which a focusable must be
869 private View findFocusableViewInBounds(boolean leftFocus, int left, int right) {
875 * A fully contained focusable is one where its left is below the bound's
876 * left, and its right is above the bound's right. A partially
889 if (left < viewRight && viewLeft < right) {
895 final boolean viewIsFullyContained = (left < viewLeft) &&
938 * method will scroll the view by one page left or right and give the focus
944 * to go one page left or {@link android.view.View#FOCUS_RIGHT}
953 mTempRect.left = getScrollX() + width;
957 if (mTempRect.left + width > view.getRight()) {
958 mTempRect.left = view.getRight() - width;
962 mTempRect.left = getScrollX() - width;
963 if (mTempRect.left < 0) {
964 mTempRect.left = 0;
967 mTempRect.right = mTempRect.left + width;
969 return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
974 * method will scroll the view to the left or right and give the focus
980 * to go the left of the view or {@link android.view.View#FOCUS_RIGHT}
988 mTempRect.left = 0;
996 mTempRect.left = mTempRect.right - width;
1000 return scrollAndFocus(direction, mTempRect.left, mTempRect.right);
1004 * <p>Scrolls the view to make the area defined by <code>left</code> and
1010 * to go left {@link android.view.View#FOCUS_RIGHT} to right
1011 * @param left the left offset of the new area to be made visible
1015 private boolean scrollAndFocus(int direction, int left, int right) {
1023 View newFocused = findFocusableViewInBounds(goLeft, left, right);
1028 if (left >= containerLeft && right <= containerRight) {
1031 int delta = goLeft ? (left - containerLeft) : (right - containerRight);
1041 * Handle scrolling in response to a left or right arrow click.
1116 && (mTempRect.left - delta) <= (getScrollX() + getWidth());
1337 // leave room for left fading edge as long as rect isn't at very left
1338 if (rect.left > 0) {
1349 if (rect.right > screenRight && rect.left > screenLeft) {
1356 scrollXDelta += (rect.left - screenLeft);
1367 } else if (rect.left < screenLeft && rect.right < screenRight) {
1376 // entire rect at left
1377 scrollXDelta -= (screenLeft - rect.left);
1380 // make sure we aren't scrolling any further than the left our content
1409 // convert from forward / backward notation to up / down / left / right
1498 * which means we want to scroll towards the left.