xml-Eclipse抱怨android:scrollbars和android:fadingEdge不允许使用字符串-包含代码

Eclipse中关于XML文件有问题. Eclipse抱怨android:scrollbars和android:fadingEdge不允许使用字符串.我检查了Android开发人员网站,实际上他们确实接受xml文件中的字符串.提出的一个相关问题是xmlns之后缺少:android的问题.正如您从代码中看到的那样,我相信以xmlns开头的行是正确的.这是完整的文件内容

<?xml version="1.0" encoding="UTF-8"?>
  <com.example.todolist.TodoListItemView 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:padding="10dp"
  android:scrollbars="verticle"
  android:textColor="@color/notepad_text"
  android:fadingEdge="verticle"
/>

解决方法:

您的问题是您拼错了“垂直”!纠正该错误后,它应该正确识别它.

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念