this should be a very easy thing to do, but it looks like it\'s very tricky. In my code I have this ListView:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
...
View v = inflater.inflate(R.layout.filtered_trip_row, parent,false);
…
return v;
}
just pass boolean value to the method so that it add the yourrowlayout to the listview and it will not give error futher like error java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView
and add yourLayout which u wants to populate through Adapter
...
it works for me and i think it may help you