Searched refs:mThumbPosition (Results 1 – 1 of 1) sorted by relevance
79 private float mThumbPosition; field in Switch396 final int thumbLeft = mSwitchLeft + (int) (mThumbPosition + 0.5f) - mTouchSlop; in hitThumb()443 Math.min(mThumbPosition + dx, getThumbScrollRange())); in onTouchEvent()444 if (newPos != mThumbPosition) { in onTouchEvent()445 mThumbPosition = newPos; in onTouchEvent()512 return mThumbPosition >= getThumbScrollRange() / 2; in getTargetCheckedState()518 mThumbPosition = checked ? getThumbScrollRange() : 0; in setChecked()526 mThumbPosition = isChecked() ? getThumbScrollRange() : 0; in onLayout()580 final int thumbPos = (int) (mThumbPosition + 0.5f); in onDraw()