ShawnLin013 / NumberPicker

:slot_machine: The android library that provides a simple and customizable NumberPicker.
MIT License
1.07k stars 240 forks source link

Add underline divider feature #171

Closed valeryvpetrov-dev closed 4 years ago

valeryvpetrov-dev commented 4 years ago

Problem

I got a task to implement underline divider (design screenshot). I have tried to use np_selectedTextUnderline attribute but it doesn't work correctly because it underlines selected text, not cell (problem demonstration).

Solution

There is a new np_dividerType attribute to use. Now NumberPicker supports two types of dividers: side lines (default) and underline, packed in DividerType enum so we can add new types easily. That's what I've got (result demonstration).

@ShawnLin013, thanks a lot for your work. You saved my time. I hope this feature will improve your project and engage new developers.