Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 652 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 652 Bytes

Nice Spinner

NiceSpinner is a re-implementation of the default Android's spinner, with a nice arrow animation and a different way to display its content.

It follows the material design guidelines, and it is compatible starting from Api 14.

alt tag

Usage

The usage is pretty straightforward. Add the tag into the XML layout, then use this snippet to populate with contents:

 NiceSpinner niceSpinner = (NiceSpinner) findViewById(R.id.nice_spinner);
 List<String> dataset = new LinkedList<>(Arrays.asList("One", "Two", "Three", "Four", "Five"));
 niceSpinner.attachDataSource(dataset);

License

Apache v2.0