When getView() in ArrayAdapter is called

前端 未结 3 1323
盖世英雄少女心
盖世英雄少女心 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:18

    getView(int position, View view, ViewGroup parent) 
    

    is called for the

    List of Objects
    

    of the nos of elements using

    getItem(int position)
    

    for the length of our List

    so, it is called nos of times untill your entire list has been allocated a layout and data from list.

提交回复
热议问题