[英]Errors while trying to make my first app with eclipse
尝试使用eclipse制作我的第一个应用程序时出现4个错误。请尝试为我提供以下帮助:
1)属性缺少android名称空间
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#F0A0A0A0"/>
<stroke android:width="2dp" color="#A00080FF"/>
<padding android:left="5dp" android:top="0dp"
android:right="5dp" android:bottom="1dp" />
2)属性缺少android名称空间
<shape xmlns:android="http://schemas.android.com/apk/res/android">
solid android:color="#F0FFFFFF"/>
<stroke android:width="1dp" color="#A00080FF"/>
<padding android:left="5dp" android:top="0dp"
android:right="5dp" android:bottom="1dp" />
3)重复的ID @ + id / image已在此布局中先前定义
4)方向错误,未指定方向。
1和2
change color="#A00080FF"
至
android:color="#A00080FF"
对于3检查您的布局xml文件...它必须具有2个具有相同android:id的imageviews
并为4指定
android:orientation="vertical"
要么
android:orientation="horizontal"
到线性布局标签
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.