MaterialSpinner: First item is not shown when added app:ms_hint attribute

I have 5 items on my list but only the last 4 items are shown on the spinner.

This is my code from my xml file:

<com.jaredrummler.materialspinner.MaterialSpinner
            android:id="@+id/spinner_home_team"
            android:layout_width="125dp"
            android:layout_height="wrap_content"
            app:ms_hint="@string/spinner_hint_select_team"
            app:ms_hint_color="@color/gray"
            app:ms_text_color="@color/colorPrimary"
            app:ms_dropdown_max_height="200dp"/>

The issue happens when I added a hint to app:ms_hint attribute. The first item is not always shown. However, if I select an item from the spinner, then I can see the first item on the list.

I think it only happens when the hint text is shown in the spinner.

With hint:

Without hint:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 15 (5 by maintainers)

Most upvoted comments

download this version of the library as a zip and import it as a module in your android studio. https://github.com/jaredrummler/MaterialSpinner/tree/a514f4d7f48156c9f384bf0e844afb59d1218992