Set ListView item height

后端 未结 4 751
闹比i
闹比i 2020-12-13 14:53

this should be a very easy thing to do, but it looks like it\'s very tricky. In my code I have this ListView:



        
4条回答
  •  失恋的感觉
    2020-12-13 15:39

    
    
        
    
        
    
    

    in the adapter set the parent as described above

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
      ...
      View v = inflater.inflate(R.layout.filtered_trip_row, parent,false);
      …
    
      return v;
    }
    

提交回复
热议问题