有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java在包“安卓”中找不到属性“startcolor”的资源标识符

我有两个错误: -在包“安卓”中未找到属性“startcolor”的资源标识符 -在包“安卓”中未找到属性“endcolor”的资源标识符 以下是xml文件中的代码:

<?xml version="1.0" encoding="utf-8" ?>
<selector xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"     xmlns:app="http://schemas.安卓.com/apk/res-auto" >
  <item>
    <shape **安卓:shape**="rectangle">
      <corners **安卓:radius**="50dp"/>
      <solid **安卓:color**="#FDFDFE"/>
      <size **安卓:height**="35dp"/>
      <gradient **安卓:startcolor**="#71DA98" **安卓:endcolor**="#56C5ED"/>
    </shape>
  </item>
</selector>

我的目标是在安卓登录页面中为按钮添加渐变色。 顺便说一句,粗体文本带有下划线,警告表示未声明属性。我用的是沙马林。谢谢你的帮助。多谢各位


共 (0) 个答案