ErNaveen / 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.
Apache License 2.0
18 stars 2 forks source link

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);
 ArrayList<String> dataset = new ArrayList<>(Arrays.asList("One", "Two", "Three", "Four", "Five"));
 niceSpinner.attachDataSource(dataset);

License

Apache v2.0