Searched refs:whichScreen (Results 1 – 2 of 2) sorted by relevance
944 final int whichScreen = (mScrollX + (screenWidth / 2)) / screenWidth; in snapToDestination() local946 snapToScreen(whichScreen); in snapToDestination()949 void snapToScreen(int whichScreen) { in snapToScreen() argument952 whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1)); in snapToScreen()955 enableChildrenCache(mCurrentScreen, whichScreen); in snapToScreen()957 final int screenDelta = Math.abs(whichScreen - mCurrentScreen); in snapToScreen()959 mNextScreen = whichScreen; in snapToScreen()969 final int newX = whichScreen * getWidth(); in snapToScreen()
760 final int whichScreen = (mScrollX + (screenWidth / 2)) / screenWidth; in snapToDestination() local762 snapToScreen(whichScreen); in snapToDestination()765 void snapToScreen(int whichScreen) { in snapToScreen() argument771 whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1)); in snapToScreen()772 boolean changingScreens = whichScreen != mCurrentScreen; in snapToScreen()774 mNextScreen = whichScreen; in snapToScreen()781 final int newX = whichScreen * getWidth(); in snapToScreen()