{"id":13643042,"url":"https://github.com/arcadefire/nice-spinner","last_synced_at":"2025-09-27T10:30:24.152Z","repository":{"id":35804831,"uuid":"40086818","full_name":"arcadefire/nice-spinner","owner":"arcadefire","description":"A nice spinner for Android","archived":true,"fork":false,"pushed_at":"2024-07-28T20:08:59.000Z","size":412,"stargazers_count":2846,"open_issues_count":53,"forks_count":445,"subscribers_count":53,"default_branch":"master","last_synced_at":"2024-09-21T16:29:40.836Z","etag":null,"topics":["android","material-design","spinner"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"SwiftOldDriver/iOS-Weekly","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcadefire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-02T17:16:45.000Z","updated_at":"2024-09-21T13:40:51.000Z","dependencies_parsed_at":"2024-01-14T11:09:56.846Z","dependency_job_id":"4a864e5c-956b-40b6-9713-2d43906901bf","html_url":"https://github.com/arcadefire/nice-spinner","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcadefire%2Fnice-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcadefire%2Fnice-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcadefire%2Fnice-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcadefire%2Fnice-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcadefire","download_url":"https://codeload.github.com/arcadefire/nice-spinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871971,"owners_count":16554475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","material-design","spinner"],"created_at":"2024-08-02T01:01:40.248Z","updated_at":"2025-09-27T10:30:23.859Z","avatar_url":"https://github.com/arcadefire.png","language":"Java","readme":"This project is archived and is no longer maintained.\n========\n\n# Nice Spinner [![](https://jitpack.io/v/arcadefire/nice-spinner.svg)](https://jitpack.io/#arcadefire/nice-spinner) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Nice%20Spinner-blue.svg?style=flat)](https://android-arsenal.com/details/1/2225)\n\nNiceSpinner is a re-implementation of the default Android's spinner, with a nice arrow animation and a different way to display its content.\n\nIt follows the material design guidelines, and it is compatible starting from Api 14.\n\n![alt tag](nice-spinner.gif)\n\n### Usage\n\nThe usage is pretty straightforward. Add the tag into the XML layout:\n```xml\n \u003corg.angmarch.views.NiceSpinner\n   android:id=\"@+id/nice_spinner\"\n   android:layout_width=\"wrap_content\"\n   android:layout_height=\"wrap_content\"\n   android:layout_margin=\"16dp\"/\u003e\n```\n* Note: change `layout_width` to at least the width of the largest item on the list to prevent resizing\n\n Then use this snippet to populate it with contents:\n```java\n NiceSpinner niceSpinner = (NiceSpinner) findViewById(R.id.nice_spinner);\n List\u003cString\u003e dataset = new LinkedList\u003c\u003e(Arrays.asList(\"One\", \"Two\", \"Three\", \"Four\", \"Five\"));\n niceSpinner.attachDataSource(dataset);\n```\n\n#### Listeners\nFor listening to the item selection actions, you can just use the following snippet:\n```java\nspinner.setOnSpinnerItemSelectedListener(new OnSpinnerItemSelectedListener() {\n    @Override\n    public void onItemSelected(NiceSpinner parent, View view, int position, long id) {\n        // This example uses String, but your type can be any\n        String item = parent.getItemAtPosition(position);\n        ...\n    }\n});\n```\n\n#### Attributes\nYou can add attributes to customize the view. Available attributes:\n\n| name                      | type      | info                                                   |\n|------------------------   |-----------|--------------------------------------------------------|\n| arrowTint                 | color     | sets the color on the drop-down arrow                  |\n| hideArrow                 | boolean   | set whether show or hide the drop-down arrow           |\n| arrowDrawable             | reference | set the drawable of the drop-down arrow                |\n| textTint                  | color     | set the text color                                     |\n| dropDownListPaddingBottom | dimension | set the bottom padding of the drop-down list           |\n| backgroundSelector        | integer   | set the background selector for the drop-down list rows |\n| popupTextAlignment        | enum      | set the horizontal alignment of the default popup text |\n| entries                   | reference | set the data source from an array of strings |\n\nHow to include\n---\n\nWith gradle: edit your `build.gradle`:\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ndependencies {\n    implementation 'com.github.arcadefire:nice-spinner:1.4.4'\n}\n```\n\nOr declare it into your `pom.xml`:\n\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.arcadefire\u003c/groupId\u003e\n    \u003cartifactId\u003enice-spinner\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nLicense\n-------\n    Copyright (C) 2015 Angelo Marchesin.\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n    http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["Spinner","Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcadefire%2Fnice-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcadefire%2Fnice-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcadefire%2Fnice-spinner/lists"}