GetView Vs. BindView in a custom CursorAdapter?

后端 未结 3 624
青春惊慌失措
青春惊慌失措 2020-11-28 03:04

So, I\'m watching this video http://www.youtube.com/watch?v=N6YdwzAvwOA and Romain Guy is showing how to make more efficient UI adapter code using the getView()

3条回答
  •  难免孤独
    2020-11-28 03:34

    CursorAdapter has an implementation of getView() that delegates to newView() and bindView(), in such a way as enforces the row recycling pattern. Hence, you do not need to do anything special with a CursorAdapter for row recycling if you are overriding newView() and bindView().

提交回复
热议问题