I wanted to extend and ArrayAdapter so that the layout of the first row is different to the layout of the remaining items.
Many thanks in advance!
there is a addHeader for listView. you can use it inflate different view for the first item in the list.
listview.addHeaderView(customView);
you have to inflate your customView before adding it to the listView header.
You could have something similar to this
public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if(position==0){
View row = inflater.inflate(R.layout.layout, parent, false);
}else{
View row = inflater.inflateR.layout.other_layout, parent, false);
}
......
}