错误:(49)解析XML时出错:格式不正确(无效标记)
问题描述:
虽然我试图编译我的代码,但无处不在,我得到了这个错误!
下面的代码是我的登录活动的布局。 我不知道这个错误。错误:(49)解析XML时出错:格式不正确(无效标记)
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="#ffff"
android:drawableLeft="@drawable/lock"
android:hint="@string/placeholder_password"
android:inputType="textPassword"
android:textColor="#cccccc"
android:="@+id/signinPassword"
android:textSize="20sp" />
</android.support.design.widget.TextInputLayout>
答
属性android:="@+id/signinPassword"
没有android:
命名空间前缀之后的名称。
它应该看起来像android:attr="@+id/signinPassword"
(用正确的属性名称替换attr
;也许id
?)。
+0
我的猜测:应该是'android:id' –
+0
@JoopEggen - 这就是我的意思是“_replace'attr'具有正确的属性名称;也许'id'?_”。 –
你用这个“截图”试图达到什么目的?为什么地狱被审查?它不会为您的问题增加任何价值。 – Clijsters
@Clijsters刚刚强调了重要的部分。而且我审查了其他代码,正如我想的那样! –
@VivekGadhvi - 只是好奇;你为什么不接受我的回答? –