jjzjj

xml - Eclipse 提示 android :scrollbars and android:fadingEdge do not allow Strings - includes code

coder 2024-07-01 原文

在 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"
/>

最佳答案

您的问题是您拼错了“vertical”!更正后,它应该可以正确识别它。

关于xml - Eclipse 提示 android :scrollbars and android:fadingEdge do not allow Strings - includes code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2564358/

有关xml - Eclipse 提示 android :scrollbars and android:fadingEdge do not allow Strings - includes code的更多相关文章

随机推荐