Skip to content Skip to sidebar Skip to footer

Homescreen Widget, Listview Shows "loading"

To start off, an image says thousand words: This takes place although getViewAt is called 4 items as my cursor size is. Here's the code: public class WidgetService extends RemoteV

Solution 1:

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

Solution 2:

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.

Solution 3:

I had to remove

android:minHeight="?attr/dropdownListPreferredItemHeight"

from the layout of the list item to make this work

Solution 4:

I also came here to say this: I set the background of the list item to ?attr/selectableitembackground

Solution 5:

If someone having the same issue like this one and if you're using a custom launcher try to use the default launcher instead.

Post a Comment for "Homescreen Widget, Listview Shows "loading""