When getView() in ArrayAdapter is called

前端 未结 3 1328
盖世英雄少女心
盖世英雄少女心 2020-12-14 19:46

When creating a customized adapter for ListView in android, I see that I have to create a class the extends ArrayAdapter class and imp

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 20:02

    getView() of ArrayAdapter is called multiple times....

    1. as an when the new row is added...
    2. you scroll up and scroll down the list view....
    3. when the list is notfiedchanged..

    Refer this link Android custom ArrayAdapter getView method called multiple times - resetting dynamic TextView value

提交回复
热议问题