milosmns / actual-number-picker

Android: A horizontal number picker
GNU General Public License v3.0
222 stars 36 forks source link

new attribute step size? #10

Closed prazjain closed 7 years ago

prazjain commented 7 years ago

Hi @milosmns, Is it possible to add a step size attribute, so when I set min to 0 and max to 100, and set step size to 5, then numbers 5,10,15,20... etc are selected, rather than all numbers from 0 to 100.

Thanks

milosmns commented 7 years ago

Will look into it Tomorrow. Thanks for the feedback

milosmns commented 7 years ago

Ok, so I think it might be weird to output something that is not reflecting the UI. I mean, outputting e.g. 0, 5, 10, 15, etc. and visually displaying everything in between would be confusing to me. Can you do it on your side? For example, when an event comes in, round it to closest 5 mark and then react to that. Does that sound feasible?