As there is no getItemViewType()
method in RemoteViewFactory - how does it actually determine the ViewType?
I just stumbled upon a case where I DEFINITELY had only 4 viewTypes, but kept getting display errors ("loading..." for one item) and a log entry that I would return more viewTypes than the getViewTypeCount
suggests. So I randomly added +1 and now it works.
So it seems to me that the actual viewType is guessed by the underlying ListAdapter/AppWidgetHost and if you do heavy modifications to a RemoteViews instance it will detect it as a new viewType...
Does anyone know what's actually happening?