{"id":13637509,"url":"https://github.com/jaredrummler/MaterialSpinner","last_synced_at":"2025-04-19T08:34:22.367Z","repository":{"id":37663311,"uuid":"50463964","full_name":"jaredrummler/MaterialSpinner","owner":"jaredrummler","description":"A spinner view for Android","archived":false,"fork":false,"pushed_at":"2021-06-04T14:44:47.000Z","size":718,"stargazers_count":1316,"open_issues_count":47,"forks_count":220,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-04-29T06:22:30.828Z","etag":null,"topics":["android","android-library","dropdown","material-design","popup-window","spinner"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredrummler.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}},"created_at":"2016-01-26T22:29:00.000Z","updated_at":"2024-04-22T10:12:34.000Z","dependencies_parsed_at":"2022-09-09T04:00:47.741Z","dependency_job_id":null,"html_url":"https://github.com/jaredrummler/MaterialSpinner","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FMaterialSpinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FMaterialSpinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FMaterialSpinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2FMaterialSpinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredrummler","download_url":"https://codeload.github.com/jaredrummler/MaterialSpinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223795272,"owners_count":17204137,"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","android-library","dropdown","material-design","popup-window","spinner"],"created_at":"2024-08-02T00:01:18.615Z","updated_at":"2024-11-09T06:31:24.544Z","avatar_url":"https://github.com/jaredrummler.png","language":"Java","funding_links":[],"categories":["Android"],"sub_categories":["Components"],"readme":"\u003ch1 align=\"center\"\u003eMaterial Spinner\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH\"\u003e\u003cimg src=\"https://img.shields.io/badge/API-14%2B-blue.svg?style=flat\" alt=\"API\" /\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"LICENSE\"\u003e\u003cimg src=\"http://img.shields.io/:license-apache-blue.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/material-spinner\"\u003e\u003cimg src=\"https://maven-badges.herokuapp.com/maven-central/com.jaredrummler/material-spinner/badge.svg\" alt=\"Maven Central\" /\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"http://www.methodscount.com/?lib=com.jaredrummler%3Amaterial-spinner%3A1.3.1\"\u003e\u003cimg src=\"https://img.shields.io/badge/methods-197-e91e63.svg\" /\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://twitter.com/jaredrummler\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/jaredrummler.svg?style=social\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n___\n\n![DEMO GIF](demo.gif \"DEMO\")\n\nUsage\n-----\n\nAdd the spinner to your layout XML:\n\n```xml\n\u003ccom.jaredrummler.materialspinner.MaterialSpinner\n    android:id=\"@+id/spinner\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"/\u003e\n```\n\nAdd items to the spinner and listen for clicks:\n\n```java\nMaterialSpinner spinner = (MaterialSpinner) findViewById(R.id.spinner);\nspinner.setItems(\"Ice Cream Sandwich\", \"Jelly Bean\", \"KitKat\", \"Lollipop\", \"Marshmallow\");\nspinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener\u003cString\u003e() {\n\n  @Override public void onItemSelected(MaterialSpinner view, int position, long id, String item) {\n    Snackbar.make(view, \"Clicked \" + item, Snackbar.LENGTH_LONG).show();\n  }\n});\n```\n\nYou can add attributes to customize the view. Available attributes:\n\n| name                    | type      | info                                                   |\n|-------------------------|-----------|--------------------------------------------------------|\n| ms_arrow_tint           | color     | sets the color on the drop-down arrow                  |\n| ms_hide_arrow           | boolean   | set to true to hide the arrow drawable                 |\n| ms_background_color     | color     | set the background color for the spinner and drop-down |\n| ms_background_selector  | integer   | set the background resource for the dropdown items     |\n| ms_text_color           | color     | set the text color                                     |\n| ms_dropdown_max_height  | dimension | set the max height of the drop-down                    |\n| ms_dropdown_height      | dimension | set the height of the drop-down                        |\n| ms_padding_top          | dimension | set the top padding of the drop-down                   |\n| ms_padding_left         | dimension | set the left padding of the drop-down                  |\n| ms_padding_bottom       | dimension | set the bottom padding of the drop-down                |\n| ms_padding_right        | dimension | set the right padding of the drop-down                 |\n| ms_popup_padding_top    | dimension | set the top padding of the drop-down items             |\n| ms_popup_padding_left   | dimension | set the left padding of the drop-down items            |\n| ms_popup_padding_bottom | dimension | set the bottom padding of the drop-down items          |\n| ms_popup_padding_right  | dimension | set the right padding of the drop-down items           |\n\nDownload\n--------\n\nDownload [the latest AAR](https://repo1.maven.org/maven2/com/jaredrummler/material-spinner/1.3.1/material-spinner-1.3.1.aar) or grab via Gradle:\n\n```groovy\ncompile 'com.jaredrummler:material-spinner:1.3.1'\n```\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.jaredrummler\u003c/groupId\u003e\n  \u003cartifactId\u003ematerial-spinner\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.1\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nAcknowledgements\n----------------\n\n[Nice Spinner](https://github.com/arcadefire/nice-spinner) by Angelo Marchesin\n\nLicense\n--------\n\n    Copyright (C) 2016 Jared Rummler\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%2Fjaredrummler%2FMaterialSpinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredrummler%2FMaterialSpinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2FMaterialSpinner/lists"}