从ADT 14开始,资源字段不能用作切换案例。 调用此修复程序以获取更多信息。Android R文件和ADT14及更高版本Eclipse
mRefreshView = (RelativeLayout) mInflater.inflate(
R.layout.pull_to_refresh_header, this, false);
发生在这条线上。 我R.java文件并没有改变,以新的所谓的没有“最终”格式,它看起来像这样
public static final class id {
public static final int pull_to_refresh_header=0x7f060000;
public static final int pull_to_refresh_image=0x7f060002;
public static final int pull_to_refresh_progress=0x7f060001;
public static final int pull_to_refresh_text=0x7f060003;
public static final int pull_to_refresh_updated_at=0x7f060004;
}
什么是修复该代码,因为我不能叫R.layout.pull_to_refresh_header了吗?
我没有开关语句。无论如何,我更新到ADT16,一切似乎恢复正常。 – Maurice