I have the following lines in my code:
View convertView;
convertView = getLayoutInflater().inflate(R.layout.classheader, parent, false);
And I have a “classheader.xml” in the layout folder.
However; I get this error: “classheader cannot be resolved or is not a field”.
Can anybody please help me to find out what is the reason for this error?
Thanks
Are you including com.android.R by mistake in your import declaration.