一个漂亮的Android Spinner - nice-spinner

jopen 5年前

NiceSpinner重新实现了默认的spinner控件,控件的右侧有一个可以在下拉状态与普通状态之间动态切换的箭头。

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);

项目主页:http://www.open-open.com/lib/view/home/1438865099489