Home
last modified time | relevance | path

Searched refs:mThumbDrawable (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DFastScroller.java79 private Drawable mThumbDrawable; field in FastScroller
175 if (mThumbDrawable != null && mThumbDrawable.isStateful()) { in refreshDrawableState()
176 mThumbDrawable.setState(state); in refreshDrawableState()
234 mThumbDrawable.setBounds(viewWidth - mThumbW, 0, viewWidth, mThumbH); in resetThumbPos()
237 mThumbDrawable.setBounds(0, 0, mThumbW, mThumbH); in resetThumbPos()
240 mThumbDrawable.setAlpha(ScrollFade.ALPHA_MAX); in resetThumbPos()
244 mThumbDrawable = drawable; in useThumbDrawable()
326 mThumbDrawable.setAlpha(alpha * 2); in draw()
338 mThumbDrawable.setBounds(left, 0, left + mThumbW, mThumbH); in draw()
343 final Rect thumbBounds = mThumbDrawable.getBounds(); in draw()
[all …]
DSwitch.java64 private Drawable mThumbDrawable; field in Switch
141 mThumbDrawable = a.getDrawable(com.android.internal.R.styleable.Switch_thumb); in Switch()
394 mThumbDrawable.getPadding(mTempRect); in hitThumb()
579 mThumbDrawable.getPadding(mTempRect); in onDraw()
584 mThumbDrawable.setBounds(thumbLeft, switchTop, thumbRight, switchBottom); in onDraw()
585 mThumbDrawable.draw(canvas); in onDraw()
637 if (mThumbDrawable != null) mThumbDrawable.setState(myDrawableState); in drawableStateChanged()
645 return super.verifyDrawable(who) || who == mThumbDrawable || who == mTrackDrawable; in verifyDrawable()
651 mThumbDrawable.jumpToCurrentState(); in jumpDrawablesToCurrentState()