简体   繁体   English

为什么我的main.xml中出现错误?

[英]Why am I getting an error in my main.xml?

See image here : 在此处查看图片:

在此处输入图片说明

I get error in setContentView(R.layout.main); 我在setContentView(R.layout.main);收到错误setContentView(R.layout.main); Where is my problem? 我的问题在哪里?

You seem to have invalid value set for layout_width (="match_parent"). 您似乎为layout_width(=“ match_parent”)设置了无效的值。 "fill_parent" is maybe what you're looking for. “ fill_parent”可能就是您想要的。 "match_parent" is available only for API level 8 and higher. “ match_parent”仅适用于API级别8和更高版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM