{"action":"closed","issue":{"url":"https://api.github.com/repos/ganfra/MaterialSpinner/issues/4","labels_url":"https://api.github.com/repos/ganfra/MaterialSpinner/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ganfra/MaterialSpinner/issues/4/comments","events_url":"https://api.github.com/repos/ganfra/MaterialSpinner/issues/4/events","html_url":"https://github.com/ganfra/MaterialSpinner/issues/4","id":75641027,"number":4,"title":"Issue with the Adapter Type Count when app:ms_hint is set","user":{"login":"rocboronat","id":456499,"avatar_url":"https://avatars.githubusercontent.com/u/456499?v=3","gravatar_id":"","url":"https://api.github.com/users/rocboronat","html_url":"https://github.com/rocboronat","followers_url":"https://api.github.com/users/rocboronat/followers","following_url":"https://api.github.com/users/rocboronat/following{/other_user}","gists_url":"https://api.github.com/users/rocboronat/gists{/gist_id}","starred_url":"https://api.github.com/users/rocboronat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocboronat/subscriptions","organizations_url":"https://api.github.com/users/rocboronat/orgs","repos_url":"https://api.github.com/users/rocboronat/repos","events_url":"https://api.github.com/users/rocboronat/events{/privacy}","received_events_url":"https://api.github.com/users/rocboronat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-12T15:28:19Z","updated_at":"2015-05-21T15:05:42Z","closed_at":"2015-05-21T15:05:42Z","body":"If the `app:ms_hint` attribute is set, the app launch this Exception:\r\n`java.lang.IllegalArgumentException: Spinner adapter view type count must be 1`\r\n\r\nBTW, in addition, our Adapter overrides the `getViewTypeCount()`(in a way to solve the issue in a desesperated way :·)\r\n\r\nOur definition in the Layout:\r\n```xml\r\n    <fr.ganfra.materialspinner.MaterialSpinner\r\n                android:id=\"@+id/s_level\"\r\n                style=\"@style/spinner_material\"\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:layout_centerVertical=\"true\"\r\n                android:layout_marginTop=\"@dimen/gap_high\"\r\n                android:paddingBottom=\"@dimen/gap_mhigh\"\r\n                android:paddingTop=\"@dimen/gap_mhigh\"\r\n                app:ms_hint=\"test\" />\r\n```\r\nThe Adapter's great method:\r\n```java\r\n    @Override\r\n    public int getViewTypeCount() {\r\n        return 1;\r\n    }\r\n```\r\n\r\nThanks for your work!"}}