[英]How do I add an xml file that I created in the setcontentview() function
我在我的 android 项目中创建了一个名为calc.xml
的xml
文件,但我无法在setcontentview()
函数中提供我的xml
文件必须做什么?
Normally this is the way:通常是这样的:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.calc);
}
Post some code please, if your problem is still there.如果您的问题仍然存在,请发布一些代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.