luffy3 / nice-spinner

A nice spinner for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A nice spinner for Android

License:Apache License 2.0


Languages

Language:Java 100.0%