首页 > 解决方案 > 布局问题?

问题描述

因此,当我更改所有 imageView ID 时发生错误。我完全不知道如何解决这个错误。我应该重新开始吗?错误是

-错误:(83)在包'android'中找不到属性'layout_scaleType'的资源标识符

-错误:(126)在包'android'中找不到属性'layout_scalelType'的资源标识符

-错误:(128, 39) 不允许使用字符串类型(在“layout_width”处,值为“match_constraint”)。

-错误:(129, 40) 不允许使用字符串类型(在“layout_height”处,值为“match_constraint”)。

我很感激任何帮助

标签: androidandroid-imageview

解决方案


-错误:(83)在包'android'中找不到属性'layout_scaleType'的资源标识符

-错误:(126)在>包'android'中找不到属性'layout_scalelType'的资源标识符

-错误:(128, 39) 不允许字符串类型(在 'layout_width' 处,值 >'match_constraint')。

-错误:(129, 40) 不允许使用字符串类型(在“layout_height”处,值为“match_constraint”)。

这些都是错别字,将layout_scaleTypelayout_scalelType替换为scaleType并将match_constraint替换为0dp

为了在约束布局中创建一个视图 match_constraint,我们使用 0dp


推荐阅读