question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First item is not shown when added app:ms_hint attribute

See original GitHub issue

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:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Hamdy-khadercommented, Mar 21, 2018

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

0reactions
zaen323commented, Mar 24, 2018

Wow I’m surprised that this was 2 days ago! Thanks a lot for fixing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when calling .setAttribute() on element's first child
The first child of the DIV is a text node containing the empty space before the P elements. ... This explicitly selects the...
Read more >
Yes/No attribute value is not shown on a product details page
Navigate to the backend. Go to Stores -> Attributes -> Product; Click on the Add New Attribute button; Set "Catalog Input Type for...
Read more >
How To Solve Missing Product Attribute Issue | CTX Feed
In this video, you will learn how to solve the missing product attribute issue to get your recently added attributes into the feed ......
Read more >
Work with attribute values - NVivo 11 for Windows Help
Add attribute values · In List View, select the attribute—click the show icon to see the attributes for a classification. · On the...
Read more >
btnSubmit.Attributes.Add("onclick", "alert('you')") - MSDN
User-364111071 posted. Hi,. I am confused. Figure (1) code works as expected, it populate the label and show the dialog box with an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found