Items on ListView in Widget doesn't display [Android]

前端 未结 2 500
不思量自难忘°
不思量自难忘° 2020-12-22 10:44

I create a ListView in my widget and getting the result from a web service. I don\'t have any problem in getting the result from the web service but the result

相关标签:
2条回答
  • 2020-12-22 11:18

    did you added adapter.notifyDataSetChanged()?

    0 讨论(0)
  • 2020-12-22 11:19

    I solve this by following the answer here I found out that my getCount always returns 0 and therefore instead of using AsyncTask I put my web service call in onDataSetChanged().

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