Homescreen widget, listView shows "Loading"
This answer helped me https://stackoverflow.com/a/23122006/2051381
I had to return 1 instead of 0 from the method getViewTypeCount() of my remoteViewsFactory class
I had to remove
android:minHeight="?attr/dropdownListPreferredItemHeight"
from the layout of the list item to make this work
Check if you are using a non-supported view.
In my case, I was using View
in my layout as a divider. and didn't realize it's not one of the supported views.
I just removed it and the widget behaved as expected.