在Android module 中 我设置了 dimens 但在 layout xml中 提示错误
可能是因为你的 dimens 文件没有被正确引用。请确保你在 layout xml 中正确引用了 dimens 文件。
例如:
<TextView
android:layout_width="@dimen/text_size_small"
android:layout_height="wrap_content"
android:text="Hello World!" />
其中,@dimen/text_size_small 引用了 dimens 文件中定义的值。如果你没有正确引用 dimens 文件,系统就会提示错误。
原文地址: https://www.cveoy.top/t/topic/b3qc 著作权归作者所有。请勿转载和采集!