Skip to content Skip to sidebar Skip to footer

Listview Not Showing Data In App Widget

I'm trying to implement a simple collection widget for my application, i'm trying to show a ListView inside a widget but the ListView is stuck at Loading... and never finish loadin

Solution 1:

Change the return count of getViewTypeCount to 1.

getViewTypeCount is the number of types of Views that will be returned by the factory.

 @Override
    publicintgetViewTypeCount() {
        return1;
    }

Solution 2:

I had same problem because I put custom view in list row, try to remove them if you have.

Post a Comment for "Listview Not Showing Data In App Widget"