oli107 / material-range-bar

Android widget for selecting a range of values.
Apache License 2.0
1.68k stars 370 forks source link

Pin text length limitation #66

Open zukopvd opened 8 years ago

zukopvd commented 8 years ago

Hello! Why you need this text formatter? private PinTextFormatter mPinTextFormatter = new PinTextFormatter() { @Override public String getText(String value) { if (value.length() > 4) { return value.substring(0, 4); } else { return value; } } };

Have some corresponding issues.

rusmichal commented 8 years ago

Please just use method setPinTextFormatter

rangeBar.setPinTextFormatter(new RangeBar.PinTextFormatter() { @Override public String getText(String value) { return value; } });