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

后端 未结 11 2327
情话喂你
情话喂你 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:29

    For all of you who still (After setting the height of the ListView to match_parent) are stuck (like I was):

    You also have to set the height of the parent layout to match_parent.

    See example below. The LinearLayout is the parent here:

    
    
            
    
            
        
    

提交回复
热议问题