NullPointerException custom listview adapter

后端 未结 1 362
庸人自扰
庸人自扰 2021-01-25 12:48

Hello stackoverflow community,

I\'m getting a NPE in my getView method of my custom adapter class which extends BaseAdapter. I hope you can help me.

Here\'s my g

相关标签:
1条回答
  • 2021-01-25 13:25

    Remove the checking condition of convertView==null in getView()

    Write the Layout inflating code directly without enclosing inside if

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