custom listview adapter getView method being called multiple times, and in no coherent order

后端 未结 11 2114
情话喂你
情话喂你 2020-11-22 04:50

I have a custom list adapter:

class ResultsListAdapter extends ArrayAdapter {

in the overridden \'getView\' method I do a

11条回答
  •  逝去的感伤
    2020-11-22 05:49

    I got rid of this issue when I changed both layout_width and layout_height to match_parent (changing only layout_height didn't help).


    Helpful note watch out if you have nested items. You've got to change the "highest" one to match_parent. Hope it helps someone.

提交回复
热议问题