ParseUI-Android icon indicating copy to clipboard operation
ParseUI-Android copied to clipboard

ParseQueryAdapter can't be used with Spinner above SDK version 19

Open gwenger opened this issue 10 years ago • 1 comments

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.

gwenger avatar Nov 18 '15 16:11 gwenger

returning 1 from getViewTypeCount() if paginationEnabled is false seems like a good workaround for this.

grantland avatar Dec 02 '15 01:12 grantland