What's the purpose of item-id's in Android ListView Adapter?

前端 未结 5 1698
[愿得一人]
[愿得一人] 2020-11-29 08:37

(Not specific to ListView, but to Adapter).

I keep implementing this when I subclass BaseAdapter:

    @Override
    public long getItemId(int positio         


        
5条回答
  •  感动是毒
    2020-11-29 09:06

    Yes it is an abstract function which is called by android to map the adapter data-set row id to your list position.

    You are welcome to dig deeper

提交回复
热议问题