Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSwitch.java86 private Drawable mThumbDrawable; field in Switch
211 mThumbDrawable = a.getDrawable(com.android.internal.R.styleable.Switch_thumb); in Switch()
212 if (mThumbDrawable != null) { in Switch()
213 mThumbDrawable.setCallback(this); in Switch()
484 if (mThumbDrawable != null) { in setThumbDrawable()
485 mThumbDrawable.setCallback(null); in setThumbDrawable()
487 mThumbDrawable = thumb; in setThumbDrawable()
515 return mThumbDrawable; in getThumbDrawable()
615 if (mThumbDrawable != null) { in onMeasure()
617 mThumbDrawable.getPadding(padding); in onMeasure()
[all …]
DFastScroller.java129 private Drawable mThumbDrawable; field in FastScroller
290 mThumbImage.setImageDrawable(mThumbDrawable); in updateAppearance()
293 if (mThumbDrawable != null) { in updateAppearance()
294 width = Math.max(width, mThumbDrawable.getIntrinsicWidth()); in updateAppearance()
347 mThumbDrawable = ta.getDrawable(index); in setStyle()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java84 private Drawable mThumbDrawable; field in SwitchCompat
189 mThumbDrawable = a.getDrawable(R.styleable.SwitchCompat_android_thumb); in SwitchCompat()
398 mThumbDrawable = thumb; in setThumbDrawable()
419 return mThumbDrawable; in getThumbDrawable()
505 if (mThumbDrawable != null) { in onMeasure()
507 mThumbDrawable.getPadding(padding); in onMeasure()
508 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; in onMeasure()
509 thumbHeight = mThumbDrawable.getIntrinsicHeight(); in onMeasure()
581 mThumbDrawable.getPadding(mTempRect); in hitThumb()
772 if (mThumbDrawable != null) { in onLayout()
[all …]