Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java1147 final Rect thumbInsets; in draw() local
1149 thumbInsets = DrawableUtils.getOpticalBounds(mThumbDrawable); in draw()
1151 thumbInsets = DrawableUtils.INSETS_NONE; in draw()
1166 if (thumbInsets != null) { in draw()
1167 if (thumbInsets.left > padding.left) { in draw()
1168 trackLeft += thumbInsets.left - padding.left; in draw()
1170 if (thumbInsets.top > padding.top) { in draw()
1171 trackTop += thumbInsets.top - padding.top; in draw()
1173 if (thumbInsets.right > padding.right) { in draw()
1174 trackRight -= thumbInsets.right - padding.right; in draw()
[all …]
/frameworks/base/core/java/android/widget/
DSwitch.java1152 final Insets thumbInsets; in draw() local
1154 thumbInsets = mThumbDrawable.getOpticalInsets(); in draw()
1156 thumbInsets = Insets.NONE; in draw()
1171 if (thumbInsets != Insets.NONE) { in draw()
1172 if (thumbInsets.left > padding.left) { in draw()
1173 trackLeft += thumbInsets.left - padding.left; in draw()
1175 if (thumbInsets.top > padding.top) { in draw()
1176 trackTop += thumbInsets.top - padding.top; in draw()
1178 if (thumbInsets.right > padding.right) { in draw()
1179 trackRight -= thumbInsets.right - padding.right; in draw()
[all …]