How to load items in android homescreen listview widget?

前端 未结 1 486
执念已碎
执念已碎 2021-02-02 16:48

I am currently developing an Android project which makes use of a Homescreen Widget to display data to the user. The view that I used in the Widget is a ListView. B

相关标签:
1条回答
  • 2021-02-02 17:01

    I have found out the issue. It turns out that I need to return the number of views, in which my case is 1, that I have in getViewTypeCount() in my WidgetRemoteViewsFactory class.

    0 讨论(0)
提交回复
热议问题