Lines Matching defs:position

140     // Used to convert between y-coordinate and thumb position within track.
159 /** The position of the first visible item in the list. */
168 /** The current scrollbar position. */
217 /** Whether to precisely match the thumb position to the list. */
475 public void setScrollbarPosition(int position) {
476 if (position == View.SCROLLBAR_POSITION_DEFAULT) {
477 position = mList.isLayoutRtl() ?
481 if (mScrollbarPosition != position) {
482 mScrollbarPosition = position;
483 mLayoutFromRight = position != View.SCROLLBAR_POSITION_LEFT;
682 // Don't adjust the vertical position.
755 * Lays out the thumb according to the current scrollbar position.
796 * Updates the offset and range used to convert from absolute y-position to
797 * thumb position within the track.
984 * Scrolls to a specific position within the section
985 * @param position
987 private void scrollTo(float position) {
996 (int) (position * sectionCount), 0, sectionCount - 1);
1038 // position actually returns Q's. So we need to look ahead to make
1039 // sure that there is really a Q at Q's position. If not, move
1050 // (1 / nSections). If the target position is near the previous
1051 // position, snap to the previous position.
1055 if (prevSection == exactSection && position - prevPosition < snapThreshold) {
1058 targetIndex = prevIndex + (int) ((nextIndex - prevIndex) * (position - prevPosition)
1076 final int index = MathUtils.constrain((int) (position * count), 0, count - 1);
1191 * @param position The position, between 0 and 1, along the track at which
1194 private void setThumbPos(float position) {
1195 final float thumbMiddle = position * mThumbRange + mThumbOffset;
1239 * Calculates the thumb position based on the visible items.