Above SDK 19, Spinners seem to require a view type count of 1. As far as I can tell, only one view type will ever be returned if paginationEnabled is set to false, so I modified the getViewTypeCount method to return 2 if paginationEnabled is true, and 1 otherwise. This seems to work so far for spinners without the need to override the class elsewhere.
Above SDK 19,
Spinners
seem to require a view type count of 1. As far as I can tell, only one view type will ever be returned ifpaginationEnabled
is set to false, so I modified thegetViewTypeCount
method to return 2 ifpaginationEnabled
is true, and 1 otherwise. This seems to work so far for spinners without the need to override the class elsewhere.