开发者

Android: getLayoutInflater() problem

开发者 https://www.devze.com 2023-03-23 08:38 出处:网络
I have the following lines in my code: View convertView; convertView = getLayoutInflater().inflate(R.layout.classheader, parent, fal开发者_开发百科se);

I have the following lines in my code:

View convertView;
convertView = getLayoutInflater().inflate(R.layout.classheader, parent, fal开发者_开发百科se);

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消