Java Eclipse抱怨android布局xml文件
所以我是android新手,我正在学习这里的教程,我正在学习它让我把背景颜色改成银色的部分。当我插入Java Eclipse抱怨android布局xml文件,java,android,xml,eclipse,Java,Android,Xml,Eclipse,所以我是android新手,我正在学习这里的教程,我正在学习它让我把背景颜色改成银色的部分。当我插入android:silver=“#c0c0”时,它给了我如下所示的错误,即使我删除了该行,它仍然给了我相同的错误 error: No resource identifier found for attribute 'backGround' in package 'android' 这是我的activity_main.xml文件 <RelativeLayout xmlns:android="
android:silver=“#c0c0”
时,它给了我如下所示的错误,即使我删除了该行,它仍然给了我相同的错误
error: No resource identifier found for attribute 'backGround' in package 'android'
这是我的activity_main.xml文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.harish.firstapp.MainActivity" >
<EditText
android:id="@+id/main_input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="62dp"
android:ems="10" >
<requestFocus />
</EditText>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/main_input"
android:layout_below="@+id/main_input"
android:layout_marginLeft="67dp"
android:layout_marginTop="59dp"
android:text="Start"
android:onClick="onClick" />
</RelativeLayout>
另外,我已经尝试重新启动Eclipse,但它仍在抱怨。尝试更改
android:silver="#C0C0C0"
到
试着改变
android:silver="#C0C0C0"
到
它是
不是“背景”。
也许它能帮上忙。很好
不是“背景”。
也许这会有帮助。如果任何答案对你有帮助,那么你应该接受它。如果任何答案对你有帮助,那么你应该接受它。
android:background