res与res-auto的区别

通常我们在布局文件中使用自定义属性的时候会这样写xmlns:app="http://schemas.android.com/apk/res/包路径"但如果你当前工程是做为lib使用,那么你如上所写,会出现找不到自定义属性的错误 。这时候你就必须写成xmlns:app="http://schemas.android.com/apk/res-auto/包路径"

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2021-07-12
  • 2022-01-05
  • 2021-11-22
  • 2021-11-13
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2021-06-27
  • 2021-12-30
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案