一個漂亮的Android Spinner - nice-spinner

jopen 9年前發布 | 123K 次閱讀 Android開發 移動開發 nice-spinner

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.baiduhome.net/lib/view/home/1438865099489

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!