RangeBar Mode => thumbs hiding when u setRangePingByValue , setByIndex, setTick = w/e its always hiding thumbs :D
KarolMB opened this issue · comments
Problem is there
if (pinRadiusDP == -1) {
mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
DEFAULT_THUMB_RADIUS_DP,
mRes.getDisplayMetrics());
} else {
mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
->> pinRadiusDP,
mRes.getDisplayMetrics());
}
pinRadiusDP == 0..0
soo its not going to the first condition.. and setting pinRadius to 0.0 DP so pins are invisible.
FAST SOLUTION:
change the dp value
if (pinRadiusDP == -1) {
mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
DEFAULT_THUMB_RADIUS_DP,
mRes.getDisplayMetrics());
} else {
mPinRadiusPx = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
-->> DEFAULT_THUMB_RADIUS_DP,
mRes.getDisplayMetrics());
}
but if You will update this library to new version change the condition