Trying to override getView in a SimpleCursorAdapter gives NullPointerExceptio

后端 未结 3 1386
滥情空心
滥情空心 2020-12-09 19:29

Would very much appreciate any help or hint on were to go next.

I\'m trying to change the content of a row in ListView programmatically. In one row there are 3 TextV

3条回答
  •  猫巷女王i
    2020-12-09 19:57

    For CursorAdapter and subclasses, you should override newView() and bindView() instead of getView().

    More importantly, though, you should not get calling super.getView(). That is where you are crashing.

提交回复
热议问题