dynamic lazylist

后端 未结 3 1044
甜味超标
甜味超标 2021-01-23 12:51

Hello everyone i want to make this Lazylist dynamic . i have tried with images first buts its coming with force to close . Please guide if my approach is wrong. Here is code

3条回答
  •  [愿得一人]
    2021-01-23 13:24

    Before using LazyAdapter you should have some data to be displayed. I think right now you don't have correct data. I guess mStrings is null. I guess because there's something wrong with your download/parse code. So please debug your parse code to ensure it works fine. Please ensure mStrings has correct data.

    Also you don't need to use LazyAdapter. You should have your own adapter that displays your data. But inside your adapter you can use ImageLoader.displayImage() method like I do in LazyAdapter.

提交回复
热议问题