{"id":13643049,"url":"https://github.com/Lesilva/BetterSpinner","last_synced_at":"2025-04-20T21:32:40.725Z","repository":{"id":29244275,"uuid":"32776501","full_name":"Lesilva/BetterSpinner","owner":"Lesilva","description":"A library creates spinners for Android that really work","archived":false,"fork":false,"pushed_at":"2022-09-08T21:07:44.000Z","size":3300,"stargazers_count":727,"open_issues_count":72,"forks_count":150,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-18T00:11:36.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lesilva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-24T04:41:53.000Z","updated_at":"2024-02-22T11:48:50.000Z","dependencies_parsed_at":"2022-09-05T14:10:29.626Z","dependency_job_id":null,"html_url":"https://github.com/Lesilva/BetterSpinner","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesilva%2FBetterSpinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesilva%2FBetterSpinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesilva%2FBetterSpinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesilva%2FBetterSpinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lesilva","download_url":"https://codeload.github.com/Lesilva/BetterSpinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965547,"owners_count":21352925,"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":[],"created_at":"2024-08-02T01:01:40.334Z","updated_at":"2025-04-20T21:32:40.304Z","avatar_url":"https://github.com/Lesilva.png","language":"Java","funding_links":[],"categories":["Spinner","\u003ca name=\"Widget\"\u003eWidget\u003c/a\u003e"],"sub_categories":["Personal Blog"],"readme":"![Banner](./screenshot/BetterSpinner Banner.jpg)\n\n# BetterSpinner\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-BetterSpinner-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1707)\n\nIf you like developing Android, you must \"hate\" Spinners. I had countless issues with Spinners and I decided to make a new one. BetterSpinner is using AutoCompleteTextView to do what a Spinner really should do.\n\n## Screenshots\n![BetterSpinner](./screenshot/screenshot.gif)\n\n## Examples\nThe demo is a showcase of the functionality of the library.\n\n[![Get it on Google Play](https://developer.android.com/images/brand/en_generic_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=com.weiwangcn.betterspinner.sample)\n\nOr\n \nDownload the APK file here: [BetterSpinner.Demo-1.1.0.apk](https://github.com/Lesilva/BetterSpinner/releases/download/1.1.0/BetterSpinner.Demo-1.1.0.apk)\n\n## Usage\nBetterSpinner can be used just like [AutoCompleteTextView](http://developer.android.com/reference/android/widget/AutoCompleteTextView.html).\n\n```java\nArrayAdapter\u003cString\u003e adapter = new ArrayAdapter\u003cString\u003e(this,\n                 android.R.layout.simple_dropdown_item_1line, COUNTRIES);\n         BetterSpinner textView = (BetterSpinner)\n                 findViewById(R.id.countries_list);\n         textView.setAdapter(adapter);\n     }\n\n     private static final String[] COUNTRIES = new String[] {\n         \"Belgium\", \"France\", \"Italy\", \"Germany\", \"Spain\"\n     };\n```\n\nor you can also store you arrays in arrays.xml and do something like this in your code\n\n```java\nString[] COUNTRIES = getResources().getStringArray(R.array.countries_list);\n```\n\nFor usage of MaterialEditText 2.0.3, check it out [here](https://github.com/rengwuxian/MaterialEditText/wiki)\n\nIf you want to use material style AutoCompleteTextView, simply replace BetterSpinner with MaterialBetterSpinner.\n\n## Download\nBetterSpinner is now pushed to Maven Central as an AAR, so you just need to add the following dependency to your `build.gradle`.\ngradle:\n\nFor normal look use (BetterSpinner):\n\n```groovy\ncompile 'com.weiwangcn.betterspinner:library:1.1.0'\n```\n\nIf you have appcompat-v7 in your dependencies make sure to exclude it :\n\n```groovy\ncompile ('com.weiwangcn.betterspinner:library:1.1.0') {\n    exclude group: 'com.android.support', module: 'appcompat-v7'\n}\n```\n\nFor material look use (MaterrialBetterSpinner):\n\n```groovy\ncompile 'com.weiwangcn.betterspinner:library-material:1.1.0'\n```\n\nIf you have appcompat-v7 and MaterialEditText in your dependencies make sure to exclude them :\n\n```groovy\ncompile ('com.weiwangcn.betterspinner:library-material:1.1.0') {\n    exclude group: 'com.android.support', module: 'appcompat-v7'\n    exclude group: 'com.rengwuxian.materialedittext', module: 'library'\n}\n```\n\nNote: library-material has included [MaterialEditText 2.0.3](https://github.com/rengwuxian/MaterialEditText).\n\n\n## Acknowledgements\nThanks my girlfriend Wanrong(wt263@msstate.edu) for the app icon :)\n\nThanks [Matt](https://github.com/mattblang) for his inspiration\n\n[MaterialEditText](https://github.com/rengwuxian/MaterialEditText)\n\n\n## License\n\n    Copyright 2015 Wei Wang\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLesilva%2FBetterSpinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLesilva%2FBetterSpinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLesilva%2FBetterSpinner/lists"}