{"id":23431139,"url":"https://github.com/akamud/materialspinner-xamarin","last_synced_at":"2025-04-12T23:33:10.341Z","repository":{"id":142257319,"uuid":"42972360","full_name":"akamud/MaterialSpinner-Xamarin","owner":"akamud","description":"Xamarin bindings for MaterialSpinner by @ganfra","archived":false,"fork":false,"pushed_at":"2015-11-13T09:59:45.000Z","size":3360,"stargazers_count":16,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:42:20.265Z","etag":null,"topics":["xamarin","xamarin-android","xamarin-bindings","xamarin-components","xamarin-plugin"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akamud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-23T02:02:00.000Z","updated_at":"2023-02-25T12:35:19.000Z","dependencies_parsed_at":"2023-03-14T02:00:49.397Z","dependency_job_id":null,"html_url":"https://github.com/akamud/MaterialSpinner-Xamarin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamud%2FMaterialSpinner-Xamarin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamud%2FMaterialSpinner-Xamarin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamud%2FMaterialSpinner-Xamarin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akamud%2FMaterialSpinner-Xamarin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akamud","download_url":"https://codeload.github.com/akamud/MaterialSpinner-Xamarin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647259,"owners_count":21139081,"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":["xamarin","xamarin-android","xamarin-bindings","xamarin-components","xamarin-plugin"],"created_at":"2024-12-23T09:53:39.260Z","updated_at":"2025-04-12T23:33:10.316Z","avatar_url":"https://github.com/akamud.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaterialSpinner-Xamarin\n![](https://raw.githubusercontent.com/akamud/MaterialSpinner-Xamarin/master/art/Icon.png)  \nXamarin bindings for [MaterialSpinner](https://github.com/ganfra/MaterialSpinner) by [@ganfra](https://github.com/ganfra)\n\nSpinner with Material Design - Down to API 9\n\nThis library provides you a Spinner with the Material style. You can use it like any regular Spinner. Add floating label text, hint and error messages.\n\n## Installing\n![](https://img.shields.io/nuget/v/MaterialSpinner-Xamarin.svg?style=flat)  \n[NuGet package](https://www.nuget.org/packages/MaterialSpinner-Xamarin/) available:\n```\nPM\u003e Install-Package MaterialSpinner-Xamarin\n```\n\n## Usage\n\nThere is a sample project available [here](https://github.com/akamud/MaterialSpinner-Xamarin/tree/master/sample)\n\nUsing in a XML:\n\n```XML\n\u003cfr.ganfra.materialspinner.MaterialSpinner\n    android:id=\"@+id/spinner\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"wrap_content\" \n    app:ms_multiline=\"false\"\n    app:ms_hint=\"hint\"\n    app:ms_enableFloatingLabel=\"false\"\n    app:ms_enableErrorLabel=\"false\"\n    app:ms_floatingLabelText=\"floating label\"\n    app:ms_baseColor=\"@color/base\"\n    app:ms_highlightColor=\"@color/highlight\"\n    app:ms_errorColor=\"@color/error\"\n    app:ms_typeface=\"typeface.ttf\"\n    app:ms_thickness=\"2dp\"\n    app:ms_hintColor=\"@color/hint\"\n    app:ms_arrowColor=\"@color/arrow\"\n    app:ms_arrowSize=\"16dp\"\n    app:ms_alignLabels=\"false\"\n    app:ms_floatingLabelColor=\"@color/floating_label\"/\u003e\n```\n\nYou can set a hint and a floating label text. If no floating label text is provided, the hint will be set instead.\n\nYou use it like a regular spinner, setting an adapter to it:\n\n```C#\nstring[] ITEMS = {\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\", \"Item 6\"};\nvar adapter = new ArrayAdapter\u003cString\u003e(this, Android.Resource.Layout.SimpleSpinnerItem, ITEMS);\nadapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);\nvar spinner = FindViewById\u003cMaterialSpinner\u003e(Resource.Id.spinner1);\nspinner.Adapter = adapter;\n```\n\nIf you need to set an error message, you can do it the same way as an EditText:\n\n```C#\n// Activate\nspinner.Error = \"Error\";\n// Deactivate\nspinner.Error = null;\n```\n\nYou can choose to have a scrolling animation or to set the error message on multiple lines with the `ms_multiline` attribute in XML (default is true).\n\n## Gif example\n\n![](https://github.com/akamud/MaterialSpinner-Xamarin/blob/master/screenshot.gif)\n\n## License\n[MIT License](https://github.com/akamud/MaterialSpinner-Xamarin/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakamud%2Fmaterialspinner-xamarin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakamud%2Fmaterialspinner-xamarin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakamud%2Fmaterialspinner-xamarin/lists"}