收到“错误:解析 XML 时出错:未绑定前缀”在 xml 文件中

发布于 2024-12-23 17:46:52 字数 410 浏览 1 评论 0原文

我知道其他人问过这个问题,但我已按照他们的指示进行操作,但仍然收到相同的错误消息。这是补间动画的 xml 文件:

<?xml version="1.0" encoding="utf-8"?>
<set>
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
    android:fromAlpha="0.0"
    android:toAlpha="1.0"
    android:duration="2500">        
</alpha>

</set>

任何帮助都会很棒。提前致谢。

摩西

I understand others have asked this but I have followed their instructions but still get the same error message. Here is the xml file for tweened animation:

<?xml version="1.0" encoding="utf-8"?>
<set>
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
    android:fromAlpha="0.0"
    android:toAlpha="1.0"
    android:duration="2500">        
</alpha>

</set>

Any help would be great. Thanks in advance.

Moses

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

饮湿 2024-12-30 17:46:52

您的标签有问题。您已关闭 标记,但未包含代码的 xmlns: 部分

<set**>**
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">

You have an issue at the tag. You have closed the <Set> tag without including xmlns: part of the code

<set**>**
xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
在你怀里撒娇 2024-12-30 17:46:52

您的 XML 在语法上无效。也许你的意思是这样的?

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:shareInterpolator="false">
<alpha
    android:fromAlpha="0.0"
    android:toAlpha="1.0"
    android:duration="2500">        
</alpha>

</set>

Your XML is syntactically invalid. Maybe you meant something like this?

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:shareInterpolator="false">
<alpha
    android:fromAlpha="0.0"
    android:toAlpha="1.0"
    android:duration="2500">        
</alpha>

</set>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文