You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the spinner in the header layout of a NavigationView used in a DrawerLayout
When the app starts up everything works normally, but after selecting a navigation item in the NavigationView and re-opening the drawer the pop-up no longer shows when clicking on the spinner.
For some reason isLaidOut() returns false at that point socanShowPopup returns false. Not sure if this is some kind of interaction with the support libraries (I am using androidX) when running on newer API devices. I tested this on a few API levels and the problem seems to be happening on Nougat (API 24)+
As a work-around I added a listener to the drawer opened event and called requestLayout() on the spinner.
The text was updated successfully, but these errors were encountered:
Yes In my case also, I am using Spinner inside a RecyclerView as a child, the specified issue occurred.
I have also use the solution suggested @HughJeffner and use requestLayout() in My ViewHolder when i initialise the Spinner, and it works fine.
I am using the spinner in the header layout of a NavigationView used in a DrawerLayout
When the app starts up everything works normally, but after selecting a navigation item in the NavigationView and re-opening the drawer the pop-up no longer shows when clicking on the spinner.
I traced back the problem to this line:
MaterialSpinner/library/src/main/java/com/jaredrummler/materialspinner/MaterialSpinner.java
Line 524 in 3dc38b5
For some reason
isLaidOut()
returns false at that point socanShowPopup
returns false. Not sure if this is some kind of interaction with the support libraries (I am using androidX) when running on newer API devices. I tested this on a few API levels and the problem seems to be happening on Nougat (API 24)+As a work-around I added a listener to the drawer opened event and called
requestLayout()
on the spinner.The text was updated successfully, but these errors were encountered: