ListView not showing data in App Widget

后端 未结 2 490
再見小時候
再見小時候 2021-01-21 14:13

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 Loa

2条回答
  •  面向向阳花
    2021-01-21 14:51

    Change the return count of getViewTypeCount to 1.

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

     @Override
        public int getViewTypeCount() {
            return 1;
        }
    

提交回复
热议问题